-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonSettings.csproj
More file actions
119 lines (107 loc) · 4.67 KB
/
Copy pathCommonSettings.csproj
File metadata and controls
119 lines (107 loc) · 4.67 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
Settings common to all projects.
Import this at the top of your .csproj files.
-->
<!--
Import variables common to all projects (version, naming, authorship, etc).
-->
<Import Project="CommonVariables.csproj"/>
<!--
Basic settings.
-->
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Configurations>Debug;Release</Configurations>
<OutputPath>$(MSBuildThisFileDirectory)\bin\$(Configuration)\</OutputPath>
<TargetFrameworks>net48;net80</TargetFrameworks>
</PropertyGroup>
<!--
Settings related to TargetFramework.
-->
<PropertyGroup>
<!--
The maximum language version supported for .NET Framework is 7.3
see https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version
-->
<LangVersion>7.3</LangVersion>
<!--
EnableWindowsTargeting is explained here:
https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1100
-->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<!--
When implementing platform-specific code (windows or macos only), either put your source files into subdirectories of
"Windows" and "MacOS", or use preprocessor statements to check for defines WINDOWS or MACOS
see https://learn.microsoft.com/en-gb/dotnet/standard/frameworks#preprocessor-symbols
-->
<IsWindows Condition="$([MSBuild]::GetTargetPlatformIdentifier($(TargetFramework))) == 'windows' or $(TargetFramework) == 'net48'">True</IsWindows>
<IsMac Condition="$([MSBuild]::GetTargetPlatformIdentifier($(TargetFramework))) == 'macos' ">True</IsMac>
<DefaultItemExcludes Condition="$(IsWindows) != 'True'">$(DefaultItemExcludes);Windows\**\*</DefaultItemExcludes>
<DefaultItemExcludes Condition="$(IsMac) != 'True'">$(DefaultItemExcludes);MacOS\**\*</DefaultItemExcludes>
</PropertyGroup>
<!--
Set some custom variables
-->
<PropertyGroup>
<BuildTimestamp>$([System.DateTime]::Now.ToString("o"))</BuildTimestamp>
</PropertyGroup>
<!--
Settings depending on build configuration
-->
<PropertyGroup Condition="$(Configuration.StartsWith('Debug'))">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>$(DefineConstants),DEBUG,TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.StartsWith('Release'))">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>$(DefineConstants)</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!--
Decide whether to copy NuGet package dependencies to the output directory
see https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#copylocallockfileassemblies
We superseded this by the project-specific property EnableDynamicLoading
-->
<PropertyGroup>
<!--<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>-->
</PropertyGroup>
<!--
Auto-generated AssemblyInfo
https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#assembly-attribute-properties
-->
<PropertyGroup>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Version>$(CommonVersionMajor).$(CommonVersionMinor).$(CommonVersionPatch)$(CommonVersionSuffix)</Version>
<Authors>$(CommonAuthors)</Authors>
<Company>$(CommonCompany)</Company>
<CopyRight>$(CommonCopyright)</CopyRight>
<Product>$(CommonProduct)</Product>
</PropertyGroup>
<ItemGroup>
<!--
Include some System.Reflection.AssemblyMetadataAttribute for storing the contact information
and other metadata as assembly attributes.
see https://learn.microsoft.com/en-us/dotnet/standard/assembly/set-attributes-project-file#set-arbitrary-attributes
-->
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>AuthorContact</_Parameter1>
<_Parameter2>$(CommonAuthorContact)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>Authors</_Parameter1>
<_Parameter2>$(CommonAuthors)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>BuildTimestamp</_Parameter1>
<_Parameter2>$(BuildTimestamp)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Project>