/
MarshalingSample.csproj
33 lines (26 loc) · 1.2 KB
/
MarshalingSample.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<OutputType>exe</OutputType>
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">$(DefineConstants);WINDOWS</DefineConstants>
<!-- On most platforms, the .NET SDK uses UseAppHost=true by default. The exception is notarized
versions for macOS Catalina. This demo uses a custom command for 'dotnet run' (see build.proj)
which assumes that the the apphost is created, so we explicitly set UseAppHost=true here -->
<UseAppHost>true</UseAppHost>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="$(SourceRoot)/MarshalingSampleNative/MarshalingSampleNative.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Clean Include="$(BinRoot)/$(Configuration)/$(TargetName).*" />
</ItemGroup>
<Target Name="SetupForDemo" AfterTargets="Build">
<ItemGroup>
<AllOutputs Include="$(OutputPath)$(TargetName).*" />
</ItemGroup>
<!-- Copy the project outputs to the bin directory -->
<Copy SourceFiles="@(AllOutputs)" DestinationFolder="$(BinRoot)/$(Configuration)" />
</Target>
</Project>