Skip to content

Commit 8a7da63

Browse files
committed
Remove artifacts and use the compiled library
1 parent 602f8b8 commit 8a7da63

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

src/Neo.Compiler.CSharp/Program.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ private static int ProcessOutputs(Options options, string folder, CompilationCon
204204
var syntaxTree = CSharpSyntaxTree.ParseText(artifact);
205205
var references = new MetadataReference[]
206206
{
207-
MetadataReference.CreateFromFile(Path.Combine(coreDir, "System.Runtime.dll")),
208-
MetadataReference.CreateFromFile(Path.Combine(coreDir, "System.Runtime.InteropServices.dll")),
209-
MetadataReference.CreateFromFile(typeof(object).Assembly.Location),
210-
MetadataReference.CreateFromFile(typeof(DisplayNameAttribute).Assembly.Location),
211-
MetadataReference.CreateFromFile(typeof(System.Numerics.BigInteger).Assembly.Location),
212-
MetadataReference.CreateFromFile(typeof(UInt160).Assembly.Location),
213-
MetadataReference.CreateFromFile(typeof(SmartContract.Testing.SmartContract).Assembly.Location)
207+
MetadataReference.CreateFromFile(Path.Combine(coreDir, "System.Runtime.dll")),
208+
MetadataReference.CreateFromFile(Path.Combine(coreDir, "System.Runtime.InteropServices.dll")),
209+
MetadataReference.CreateFromFile(typeof(object).Assembly.Location),
210+
MetadataReference.CreateFromFile(typeof(DisplayNameAttribute).Assembly.Location),
211+
MetadataReference.CreateFromFile(typeof(System.Numerics.BigInteger).Assembly.Location),
212+
MetadataReference.CreateFromFile(typeof(NeoSystem).Assembly.Location),
213+
MetadataReference.CreateFromFile(typeof(SmartContract.Testing.SmartContract).Assembly.Location)
214214
};
215215

216216
var compilation = CSharpCompilation.Create(baseName, new[] { syntaxTree }, references,

tests/Neo.SmartContract.Template.UnitTests/Neo.SmartContract.Template.UnitTests.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<ProjectReference Include="..\..\src\Neo.Compiler.CSharp\Neo.Compiler.CSharp.csproj" />
16-
<ProjectReference Include="..\..\src\Neo.SmartContract.Framework\Neo.SmartContract.Framework.csproj">
17-
<Aliases>scfx</Aliases>
18-
</ProjectReference>
1915
<ProjectReference Include="..\..\src\Neo.SmartContract.Testing\Neo.SmartContract.Testing.csproj" />
2016
</ItemGroup>
2117

tests/Neo.SmartContract.Template.UnitTests/templates/neocontractnep17/Nep17ContractTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ namespace Neo.SmartContract.Template.UnitTests.templates.neocontractnep17
1111
[TestClass]
1212
public class Nep17ContractTests
1313
{
14-
private const string NefFilePath = "templates/neocontractnep17/UtArtifacts/Nep17Contract.nef";
15-
private const string ManifestPath = "templates/neocontractnep17/UtArtifacts/Nep17Contract.manifest.json";
14+
private const string NefFilePath = "templates/neocontractnep17/Artifacts/Nep17Contract.nef";
15+
private const string ManifestPath = "templates/neocontractnep17/Artifacts/Nep17Contract.manifest.json";
1616

1717
private readonly TestEngine Engine;
1818
private readonly Nep17Contract Nep17;

0 commit comments

Comments
 (0)