forked from neo-project/neo-devpack-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNeo.Compiler.CSharp.csproj
More file actions
102 lines (90 loc) · 5.07 KB
/
Copy pathNeo.Compiler.CSharp.csproj
File metadata and controls
102 lines (90 loc) · 5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<AssemblyTitle>Neo.Compiler.CSharp</AssemblyTitle>
<LangVersion>latest</LangVersion>
<AssemblyName>nccs</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>Neo.Compiler.CSharp</PackageId>
<PackAsTool>true</PackAsTool>
<RootNamespace>Neo.Compiler</RootNamespace>
<Nullable>enable</Nullable>
<PackageTags>NEO;Blockchain;Smart Contract;Compiler</PackageTags>
<Company>The Neo Project</Company>
<Product>Neo.Compiler.CSharp</Product>
<Description>Neo.Compiler.CSharp</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
<PackageReference Include="System.CommandLine" Version="2.0.9" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Neo" Version="$(NeoCorePackageVersion)" />
<PackageReference Include="Neo.Extensions" Version="$(NeoCorePackageVersion)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Neo.SmartContract.Analyzer\Neo.SmartContract.Analyzer.csproj" />
<ProjectReference Include="..\Neo.SmartContract.Framework\Neo.SmartContract.Framework.csproj">
<Aliases>scfx</Aliases>
</ProjectReference>
<ProjectReference Include="..\Neo.Disassembler.CSharp\Neo.Disassembler.CSharp.csproj" />
</ItemGroup>
<ItemGroup>
<CompilerFrameworkReference Include="System.Runtime.dll" />
<CompilerFrameworkReference Include="System.Runtime.InteropServices.dll" />
<CompilerFrameworkReference Include="System.ComponentModel.Primitives.dll" />
<CompilerFrameworkReference Include="System.Runtime.Numerics.dll" />
<CompilerFrameworkReference Include="System.Collections.dll" />
<CompilerFrameworkReference Include="System.Memory.dll" />
</ItemGroup>
<Target Name="PrepareCompilerFrameworkReferences" AfterTargets="ResolveFrameworkReferences">
<ItemGroup>
<CoreFrameworkPack Include="@(ResolvedTargetingPack)" Condition="'%(ResolvedTargetingPack.Identity)' == 'Microsoft.NETCore.App'">
<PackRoot>%(ResolvedTargetingPack.Path)</PackRoot>
</CoreFrameworkPack>
</ItemGroup>
<PropertyGroup Condition="'$(CompilerFrameworkPackRoot)' == '' and '@(CoreFrameworkPack)' != ''">
<CompilerFrameworkPackRoot>@(CoreFrameworkPack->'%(PackRoot)')</CompilerFrameworkPackRoot>
</PropertyGroup>
<ItemGroup Condition="'$(CompilerFrameworkPackRoot)' != ''">
<CompilerFrameworkReferenceSource Include="@(CompilerFrameworkReference->'$(CompilerFrameworkPackRoot)/ref/$(TargetFramework)/%(Identity)')" />
</ItemGroup>
</Target>
<Target Name="CopyCompilerFrameworkReferences" AfterTargets="Publish" DependsOnTargets="PrepareCompilerFrameworkReferences">
<PropertyGroup>
<CompilerReferenceOutputDir>$(PublishDir)refs</CompilerReferenceOutputDir>
</PropertyGroup>
<MakeDir Directories="$(CompilerReferenceOutputDir)" Condition="'$(CompilerReferenceOutputDir)' != '' and '@(CompilerFrameworkReferenceSource)' != ''" />
<Copy SourceFiles="@(CompilerFrameworkReferenceSource)" DestinationFiles="@(CompilerFrameworkReferenceSource->'$(CompilerReferenceOutputDir)/%(Filename)%(Extension)')" SkipUnchangedFiles="true" Condition="'@(CompilerFrameworkReferenceSource)' != ''" />
</Target>
<PropertyGroup>
<ArtifactLibraryDependencyProject>$(MSBuildThisFileDirectory)..\Neo.SmartContract.Testing\Neo.SmartContract.Testing.csproj</ArtifactLibraryDependencyProject>
<ArtifactLibraryDependencyAssembly>$(MSBuildThisFileDirectory)..\Neo.SmartContract.Testing\bin\$(Configuration)\$(TargetFramework)\Neo.SmartContract.Testing.dll</ArtifactLibraryDependencyAssembly>
</PropertyGroup>
<Target Name="IncludeArtifactLibraryDependency" BeforeTargets="ComputeResolvedFilesToPublishList">
<MSBuild Projects="$(ArtifactLibraryDependencyProject)"
Targets="Restore;Build"
BuildInParallel="$(BuildInParallel)"
Properties="Configuration=$(Configuration);TargetFramework=$(TargetFramework)"
RemoveProperties="NoBuild;NoRestore;RuntimeIdentifier;SelfContained;PublishSelfContained;PublishSingleFile;PublishReadyToRun;PublishTrimmed;PublishAot" />
<ItemGroup>
<ResolvedFileToPublish Include="$(ArtifactLibraryDependencyAssembly)"
RelativePath="Neo.SmartContract.Testing.dll"
CopyToPublishDirectory="PreserveNewest"
ExcludeFromSingleFile="true" />
</ItemGroup>
</Target>
<Target Name="PreserveArtifactLibraryMetadataAssemblies" BeforeTargets="_ComputeFilesToBundle">
<ItemGroup>
<ResolvedFileToPublish Update="@(ResolvedFileToPublish)"
Condition="'%(Filename)' == 'Neo.IO' or '%(Filename)' == 'Neo'"
ExcludeFromSingleFile="true" />
</ItemGroup>
</Target>
</Project>