|
14 | 14 | other projects that might want to set the build outputs etc... into a different place.
|
15 | 15 | -->
|
16 | 16 | <PropertyGroup>
|
17 |
| - <!-- Default to x86/Win32 | Debug build if not otherwise specified --> |
| 17 | + <!-- Default to x64/AnyCPU | Release build if not otherwise specified --> |
18 | 18 | <Platform Condition="'$(Platform)'=='' AND '$(MSBuildProjectExtension)'!='.vcxproj'">AnyCPU</Platform>
|
19 |
| - <Platform Condition="'$(Platform)'=='' AND '$(MSBuildProjectExtension)'=='.vcxproj'">Win32</Platform> |
| 19 | + <Platform Condition="'$(Platform)'=='' AND '$(MSBuildProjectExtension)'=='.vcxproj'">x64</Platform> |
20 | 20 | <Platform Condition="$(Platform)=='x86' AND '$(MSBuildProjectExtension)'=='.vcxproj'">Win32</Platform>
|
21 | 21 | <UnifiedPlatformPathName Condition="'$(UnifiedPlatformPathName)'==''">$(Platform)</UnifiedPlatformPathName>
|
22 | 22 | <UnifiedPlatformPathName Condition="'$(UnifiedPlatformPathName)'=='Win32'">x86</UnifiedPlatformPathName>
|
23 |
| - <UnifiedPlatformPathName Condition="'$(UnifiedPlatformPathName)'=='AnyCPU'">x86</UnifiedPlatformPathName> |
| 23 | + <UnifiedPlatformPathName Condition="'$(UnifiedPlatformPathName)'=='AnyCPU'">x64</UnifiedPlatformPathName> |
24 | 24 |
|
25 |
| - <Configuration Condition="'$(Configuration)'==''">Debug</Configuration> |
| 25 | + <Configuration Condition="'$(Configuration)'==''">Release</Configuration> |
26 | 26 |
|
27 | 27 | <!-- Use the location of this file (at the top of the build tree) to define the root directory, if not already set -->
|
28 | 28 | <BuildRootDir Condition="'$(BuildRootDir)'==''">$(MSBuildThisFileDirectory)</BuildRootDir>
|
|
39 | 39 |
|
40 | 40 | <BuildOutputPackagesDir Condition="'$(BuildOutputPackagesDir)'==''">$(BaseBuildOutputPath)packages\</BuildOutputPackagesDir>
|
41 | 41 |
|
42 |
| - <BuildVersionXmlFile Condition="'$(BuildVersionXmlFile)'==''">$(MSBuildThisFileDirectory)BuildVersion.xml</BuildVersionXmlFile> |
43 |
| - <IsAutomatedBuild Condition="'$(IsAutomatedBuild)'=='' AND '$(APPVEYOR)'!=''">true</IsAutomatedBuild> |
| 42 | + <BuildVersionXml Condition="'$(BuildVersionXmlFile)'==''">$(MSBuildThisFileDirectory)BuildVersion.xml</BuildVersionXml> |
| 43 | + <IsAutomatedBuild Condition="'$(IsAutomatedBuild)'=='' AND '$(CI)'!=''">true</IsAutomatedBuild> |
44 | 44 | <IsAutomatedBuild Condition="'$(IsAutomatedBuild)'==''">false</IsAutomatedBuild>
|
45 | 45 |
|
46 | 46 | <IsPullRequestBuild Condition="'$(IsPullRequestBuild)'=='' AND '$(APPVEYOR_PULL_REQUEST_NUMBER)'!=''">true</IsPullRequestBuild>
|
47 | 47 | <IsPullRequestBuild Condition="'$(IsPullRequestBuild)'==''">false</IsPullRequestBuild>
|
48 | 48 |
|
49 |
| - <IsReleaseBuild Condition="'$(IsReleaseBuild)'=='' AND '$(APPVEYOR_REPO_TAG)'=='true' AND '$(APPVEYOR_PULL_REQUEST_NUMBER)'=='' AND '$(APPVEYOR_BRANCH)'=='master'">true</IsReleaseBuild> |
| 49 | + <IsReleaseBuild Condition="'$(IsReleaseBuild)'=='' AND '$(APPVEYOR_REPO_TAG)'=='true' AND '$(APPVEYOR_PULL_REQUEST_NUMBER)'==''">true</IsReleaseBuild> |
50 | 50 | <IsReleaseBuild Condition="'$(IsReleaseBuild)'==''">false</IsReleaseBuild>
|
51 |
| - <BuildVersionXml>$(MSBuildThisFileDirectory)BuildVersion.xml</BuildVersionXml> |
52 |
| - <BuildTimeStamp Condition="'$(BuildTimeStamp)'=='' AND '$(APPVEYOR_REPO_COMMIT_TIMESTAMP)'!=''">$(APPVEYOR_REPO_COMMIT_TIMESTAMP)</BuildTimeStamp> |
| 51 | + <BuildTime Condition="'$(BuildTime)'=='' AND '$(APPVEYOR_REPO_COMMIT_TIMESTAMP)'!=''">$(APPVEYOR_REPO_COMMIT_TIMESTAMP)</BuildTime> |
| 52 | + <!--<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>--> |
53 | 53 | </PropertyGroup>
|
54 | 54 | <Choose>
|
55 | 55 | <!-- Apply standard analyzers and rule sets for all C# projects -->
|
56 |
| - <When Condition="'$(MSBuildProjectExtension)'=='.csproj'"> |
| 56 | + <When Condition="'$(MSBuildProjectExtension)'=='.csproj' and '$(DisableDirProps)'!='true'"> |
57 | 57 | <PropertyGroup>
|
58 | 58 | <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Ubiquity.NET.ruleset</CodeAnalysisRuleSet>
|
59 | 59 | <CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
|
60 | 60 | <Determenistic>true</Determenistic>
|
61 | 61 | <IsTestProject>$(MSBuildProjectName.Contains('UT'))</IsTestProject>
|
62 |
| - <OutputPath Condition="'$(OutputPath)' == '' and '$(PlatformName)' == 'AnyCPU'">$(BaseOutputPath)$(Configuration)\</OutputPath> |
63 |
| - <OutputPath Condition="'$(OutputPath)' == '' and '$(PlatformName)' != 'AnyCPU'">$(BaseOutputPath)$(PlatformName)\$(Configuration)\</OutputPath> |
64 |
| - <OutputPath Condition="!HasTrailingSlash('$(OutputPath)')">$(OutputPath)\</OutputPath> |
65 | 62 | </PropertyGroup>
|
66 |
| - <ItemGroup Condition="'$(NoCommonAnalyzers)'!='true' and '$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false'"> |
67 |
| - <PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.0" PrivateAssets="All" /> |
68 |
| - </ItemGroup> |
69 | 63 | <ItemGroup Condition="'$(NoCommonAnalyzers)'!='true'">
|
70 |
| - <PackageReference Include="Microsoft.AnalyzerPowerPack" Version="1.1.0" PrivateAssets="All" /> |
71 |
| - <PackageReference Include="RefactoringEssentials" Version="5.6.0" PrivateAssets="All" /> |
72 |
| - <PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" /> |
73 | 64 | <AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
|
74 |
| - </ItemGroup> |
75 |
| - <ItemGroup Condition="'$(NoCommonAnalyzers)'!='true'"> |
76 | 65 | <None Include="$(MSBuildThisFileDirectory)Ubiquity.NET.ruleset" Link="Ubiquity.NET.ruleset" />
|
77 | 66 | </ItemGroup>
|
78 | 67 | </When>
|
|
0 commit comments