Skip to content

Commit 6347643

Browse files
committed
Cleaning up and extracting common project/build config
1 parent 0b8afca commit 6347643

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

TugDSC.common.props

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<PropertyGroup>
4+
<SharedSourceDir>$(MSBuildThisFileDirectory)/src/shared</SharedSourceDir>
5+
<NETStandardMoniker>netstandard2.0</NETStandardMoniker>
6+
<NETCoreAppMoniker>netcoreapp2.0</NETCoreAppMoniker>
7+
<NETFrameworkMoniker>net461</NETFrameworkMoniker>
8+
</PropertyGroup>
9+
10+
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NETStandardMoniker)' ">
11+
<DefineConstants>$(DefineConstants);DOTNET_CORE</DefineConstants>
12+
</PropertyGroup>
13+
14+
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NETCoreAppMoniker)' ">
15+
<DefineConstants>$(DefineConstants);DOTNET_CORE</DefineConstants>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition=" '$(TargetFramework)' == 'NETFrameworkMoniker' ">
19+
<DefineConstants>$(DefineConstants);DOTNET_FRAMEWORK</DefineConstants>
20+
</PropertyGroup>
21+
22+
23+
<PropertyGroup>
24+
<NeutralLanguage>en-US</NeutralLanguage>
25+
<Authors>github.com/PowerShellOrg/tug/graphs/contributors</Authors>
26+
<!--
27+
* https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0169
28+
The private field 'class member' is never used
29+
* https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0649
30+
Field 'field' is never assigned to, and will always have its default value 'value'
31+
-->
32+
<CommonNoWarn>CS0169;CS0649</CommonNoWarn>
33+
</PropertyGroup>
34+
35+
<PropertyGroup>
36+
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
37+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
38+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
39+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
40+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
41+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
42+
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
43+
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
44+
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
45+
</PropertyGroup>
46+
47+
</Project>

0 commit comments

Comments
 (0)