/ Directory.Build.props
Directory.Build.props
1 2 <!-- https://docs.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-properties?view=vs-2017 --> 3 <Project> 4 5 <PropertyGroup> 6 <SolutionOutputPath>$(MSBuildThisFileDirectory)bin</SolutionOutputPath> 7 <InformationalVersion>This is a open source project.</InformationalVersion> 8 </PropertyGroup> 9 10 <ItemGroup Condition="'$(MSBuildProjectExtension)'=='.csproj' And '$(SkipSolutionInfo)'==''"> 11 <Compile Include="$(MSBuildThisFileDirectory)\SolutionInfo.cs" Link="Properties\SolutionInfo.cs" /> 12 </ItemGroup> 13 14 <PropertyGroup> 15 <AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath> 16 <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> 17 <!--<SignAssembly>True</SignAssembly> 18 <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\osisaNoPwd.snk</AssemblyOriginatorKeyFile>--> 19 <GenerateAssemblyInfo>true</GenerateAssemblyInfo> 20 <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> 21 <!--<OutputPath>$(SolutionOutputPath)</OutputPath>--> 22 <!--<RuntimeIdentifier>win7-x64</RuntimeIdentifier>--> 23 <NoWarn>NU1701;NU5125;CS8002;CS3001;CS3002;CS3003;CS3024;CS0649;CS3009;CS0067;CS3027</NoWarn> 24 </PropertyGroup> 25 26 <!-- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> 27 <DefineConstants>TRACE;DEBUG</DefineConstants> 28 <PlatformTarget>AnyCPU</PlatformTarget> 29 </PropertyGroup> --> 30 31 <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'"> 32 <DefineConstants>NETSTANDARD2_0</DefineConstants> 33 </PropertyGroup> 34 35 <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.0'"> 36 <DefineConstants>NETCORE3_0</DefineConstants> 37 </PropertyGroup> 38 39 <Target Name="Test"> 40 <Message Text='TargetFramework=$(MSBuildProject) is "$(TargetFramework)" $(DefineConstants).' /> 41 </Target> 42 </Project>