|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
3 | 3 | <OutputType>Exe</OutputType> |
4 | | - <TargetFrameworks>net6.0-windows;net7.0-windows</TargetFrameworks> |
| 4 | + <TargetFrameworks>net6.0;net7.0</TargetFrameworks> |
5 | 5 | <GenerateAssemblyInfo>false</GenerateAssemblyInfo> |
6 | 6 | <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
7 | 7 | <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
8 | | - <RuntimeIdentifier>win-x64</RuntimeIdentifier> |
| 8 | + <RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers> |
9 | 9 | <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> |
10 | 10 | <Configurations>Debug;Release</Configurations> |
11 | 11 | <Platforms>AnyCPU;x64</Platforms> |
|
20 | 20 | <Optimize>false</Optimize> |
21 | 21 | <OutputPath>..\Build\Debug\</OutputPath> |
22 | 22 | <DefineConstants>TRACE;DEBUG;ENABLE_THREADS</DefineConstants> |
23 | | - <RuntimeIdentifier>win-x64</RuntimeIdentifier> |
| 23 | + <RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers> |
24 | 24 | <UseVSHostingProcess>true</UseVSHostingProcess> |
25 | 25 | </PropertyGroup> |
26 | 26 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
|
29 | 29 | <Optimize>false</Optimize> |
30 | 30 | <OutputPath>..\Build\Debug\</OutputPath> |
31 | 31 | <DefineConstants>TRACE;DEBUG;ENABLE_THREADS</DefineConstants> |
32 | | - <RuntimeIdentifier>win-x64</RuntimeIdentifier> |
| 32 | + <RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers> |
33 | 33 | <UseVSHostingProcess>true</UseVSHostingProcess> |
34 | 34 | </PropertyGroup> |
35 | 35 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
36 | 36 | <DebugType>pdbonly</DebugType> |
37 | 37 | <Optimize>true</Optimize> |
38 | 38 | <OutputPath>..\Build\Release\</OutputPath> |
39 | 39 | <DefineConstants>TRACE</DefineConstants> |
40 | | - <RuntimeIdentifier>win-x64</RuntimeIdentifier> |
| 40 | + <RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers> |
41 | 41 | <PlatformTarget>x64</PlatformTarget> |
42 | 42 | </PropertyGroup> |
43 | 43 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
44 | 44 | <DebugType>pdbonly</DebugType> |
45 | 45 | <Optimize>true</Optimize> |
46 | 46 | <OutputPath>..\Build\Release\</OutputPath> |
47 | 47 | <DefineConstants>TRACE</DefineConstants> |
48 | | - <RuntimeIdentifier>win-x64</RuntimeIdentifier> |
| 48 | + <RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers> |
49 | 49 | <PlatformTarget>x64</PlatformTarget> |
50 | 50 | </PropertyGroup> |
51 | 51 |
|
|
61 | 61 | <Message Text="TargetDir = $(TargetDir)" /> |
62 | 62 | <Message Text="TargetName = $(TargetName)" /> |
63 | 63 |
|
64 | | - <Exec ConsoleToMSBuild="true" Command="dotnet build "$(ProjectPath)" -r win-x64 /p:CopyLocalLockFileAssemblies=false;IsNestedBuild=true --output "$(TargetDir)stage/""> |
| 64 | + <Exec ConsoleToMSBuild="true" Command="dotnet build "$(ProjectPath)" /p:CopyLocalLockFileAssemblies=false;IsNestedBuild=true --output "$(TargetDir)stage/""> |
65 | 65 | <Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" /> |
66 | 66 | </Exec> |
67 | 67 | <Copy SourceFiles="$(TargetDir)stage/$(TargetName).exe" DestinationFolder="$(TargetDir)" /> |
|
0 commit comments