|
3 | 3 | We're specifying the Sdk here to make sure appveyor correctly recognizes this as a .NET Core project |
4 | 4 | Unfortunately this generates the warning MSB4011, because the including projects already define an Sdk |
5 | 5 | --> |
6 | | - <PropertyGroup> |
7 | | - <RubberduckVersion>2.5.1</RubberduckVersion> |
8 | | - </PropertyGroup> |
9 | 6 | <PropertyGroup> |
10 | 7 | <OutputType>Library</OutputType> |
11 | 8 | <Company>Rubberduck-VBA</Company> |
|
22 | 19 | <!-- Ignore MSB4011 warning, rationale above --> |
23 | 20 | <!-- Ignore VisualStudio whining about the CodeAnalysis assembly changing (IDE1001) --> |
24 | 21 | <DisabledWarnings>$(DisabledWarnings);4011;1001;1591</DisabledWarnings> |
25 | | - <Version>$(RubberduckVersion)</Version> |
26 | | - <FileVersion>$(RubberduckVersion)</FileVersion> |
27 | | - </PropertyGroup> |
28 | | - |
29 | | - <PropertyGroup Condition=" '$(AssemblyVersion)' == '' "> |
30 | | - <!-- |
31 | | - This assembly version specification is considered nonstandard. |
32 | | - As such builds that do not override the assembly version generate a warning, which we ignore. |
33 | | - --> |
34 | | - <Deterministic>False</Deterministic> |
35 | | - <AssemblyVersion>$(RubberduckVersion).*</AssemblyVersion> |
36 | | - <!-- Ignore CSharp compiler warning for nonstandard assembly version (CS7035) --> |
37 | | - <!-- Ignore Linker warning for nonstandard assembly version (AL1053) --> |
38 | | - <DisabledWarnings>$(DisabledWarnings);7035;1053</DisabledWarnings> |
39 | | - <!-- Wildcards are not deterministic, ensure build passes when setting wildcard versions --> |
| 22 | + <!-- Declare a Version if it's not already declared as a global property through MSBuild invocation --> |
| 23 | + <Version Condition=" '$(Version)' == '' ">2.5.1</Version> |
| 24 | + <!-- all other relevant version numbers are computed from Version automagically --> |
40 | 25 | </PropertyGroup> |
41 | 26 |
|
42 | 27 | <PropertyGroup Condition=" $(UnifyOutputPath) "> |
|
0 commit comments