-
Notifications
You must be signed in to change notification settings - Fork 41
/
ExportingAssembly.csproj
50 lines (40 loc) · 2.37 KB
/
ExportingAssembly.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
48
49
50
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Condition="'$(TestNuPkg)' != 'true'">
<PseudoPackage>$(SrcRoot)dnne-pkg/bin/$(Configuration)/pkg/</PseudoPackage>
<AfterMicrosoftNETSdkTargets>$(PseudoPackage)build/DNNE.targets</AfterMicrosoftNETSdkTargets>
</PropertyGroup>
<ItemGroup Condition="'$(TestNuPkg)' != 'true'">
<Analyzer Include="$(PseudoPackage)analyzers/dotnet/cs/dnne-analyzers.dll" />
</ItemGroup>
<Import Condition="'$(TestNuPkg)' != 'true'" Project="$(PseudoPackage)build/DNNE.props" />
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(TargetFrameworks);net472</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<RollForward>Major</RollForward>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Disable warnings about missing comments -->
<NoWarn>1591</NoWarn>
<!-- A source generator is supplying attributes, so always emit that asset. -->
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<EnableDynamicLoading>true</EnableDynamicLoading>
<DnneAddGeneratedBinaryToProject>true</DnneAddGeneratedBinaryToProject>
<DnneCompilerUserFlags Condition="'$(BuildAsCPPWithMSVC)'=='true'">/TP </DnneCompilerUserFlags>
<DnneCompilerCommand Condition="'$(BuildWithGCC)'=='true'">gcc</DnneCompilerCommand>
<DnneCompilerCommand Condition="'$(BuildWithGPP)'=='true'">g++</DnneCompilerCommand>
<DnneCompilerCommand Condition="'$(BuildWithClangPP)'=='true'">clang++</DnneCompilerCommand>
<!-- Include the override option for dnne_abort() -->
<DnneCompilerUserFlags>$(DnneCompilerUserFlags) $(MSBuildThisFileDirectory)override.c</DnneCompilerUserFlags>
<!-- When targeting .NET Framework we only use a subset of files -->
<EnableDefaultCompileItems Condition="$(TargetFramework.StartsWith('net4'))">false</EnableDefaultCompileItems>
</PropertyGroup>
<ItemGroup Condition="'$(EnableDefaultCompileItems)' == 'false'">
<Compile Include="IntExports.cs" />
</ItemGroup>
<PropertyGroup Condition="'$(TestNuPkg)' == 'true' AND '$(RefLocalBuild)'=='true'">
<RestoreSources>$(SrcRoot)dnne-pkg/bin/$(Configuration)</RestoreSources>
</PropertyGroup>
<ItemGroup Condition="'$(TestNuPkg)' == 'true'">
<PackageReference Include="DNNE" Version="2.*" />
</ItemGroup>
</Project>