-
Notifications
You must be signed in to change notification settings - Fork 10
/
Nostrand.csproj
47 lines (42 loc) · 1.95 KB
/
Nostrand.csproj
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
<!-- <Project InitialTargets="PreBuild" Sdk="Microsoft.NET.Sdk"> -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net471;net6.0</TargetFrameworks>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
<Content Include="Scripts/nos-core" Link="nos" CopyToOutputDirectory="PreserveNewest" Condition="'$(TargetFramework)' == 'net5.0'" />
<Content Include="Scripts/nos-framework" Link="nos" CopyToOutputDirectory="PreserveNewest" Condition="'$(TargetFramework)' == 'net471'" />
<Content Include="nostrand/**/*.*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2" PrivateAssets="All" />
<PackageReference Include="Mono.Terminal" Version="5.4.0" />
<PackageReference Include="Lokad.ILPack" Version="0.1.5" Condition="'$(TargetFramework)' == 'net5.0'" />
</ItemGroup>
<ItemGroup>
<Reference Include="references/*.dll" />
<Reference Include="references-netstandard/*.dll" Condition="'$(TargetFramework)' == 'net6.0'" />
<Reference Include="references-net4x/*.dll" Condition="'$(TargetFramework)' == 'net471'" />
</ItemGroup>
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
<Exec
Command="git describe --long --always --exclude=* --abbrev=8"
StandardOutputImportance="low"
ConsoleToMSBuild="True"
IgnoreExitCode="False"
>
<Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput"/>
</Exec>
</Target>
<!-- <Target Name="PreBuild">
<Exec Command="sh Scripts/patch-assembly-info.sh" />
</Target>
<Target Name="PostBuild" AfterTargets="Build">
<Exec Command="sh Scripts/unpatch-assembly-info.sh" />
<Exec Command="sh Scripts/aot-assemblies.sh $(OutDir)" Condition="'$(Configuration)'=='Release'" />
</Target> -->
</Project>