diff options
author | Rob Mensching <rob@firegiant.com> | 2018-12-22 09:10:56 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2018-12-22 10:54:10 -0800 |
commit | c90ae13f242350786cf9103330c28e660d35eeb8 (patch) | |
tree | c7bfda4707483efa9eb67bba5ec32d340b7997cd | |
parent | 77b1c956e6037717f98ae01c2ff4e989c0252db8 (diff) | |
download | wix-c90ae13f242350786cf9103330c28e660d35eeb8.tar.gz wix-c90ae13f242350786cf9103330c28e660d35eeb8.tar.bz2 wix-c90ae13f242350786cf9103330c28e660d35eeb8.zip |
Update to latest Home\repo-template
-rw-r--r-- | .editorconfig | 37 | ||||
-rw-r--r-- | .gitignore | 16 | ||||
-rw-r--r-- | appveyor.yml | 6 | ||||
-rw-r--r-- | src/Directory.Build.props | 9 | ||||
-rw-r--r-- | src/Directory.Build.targets | 48 | ||||
-rw-r--r-- | src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec | 3 | ||||
-rw-r--r-- | src/winterop/runtime.win-xxx.WixToolset.Core.Native.nuspec | 3 | ||||
-rw-r--r-- | src/wixnative/runtime.win.WixToolset.Core.Native.nuspec | 3 |
8 files changed, 112 insertions, 13 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..1d72e683 --- /dev/null +++ b/.editorconfig | |||
@@ -0,0 +1,37 @@ | |||
1 | # Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | # | ||
3 | # Do NOT modify this file. Update the canonical version in Home\repo-template\src\.editorconfig | ||
4 | # then update all of the repos. | ||
5 | |||
6 | root = true | ||
7 | |||
8 | [*] | ||
9 | charset = utf-8 | ||
10 | indent_style = space | ||
11 | indent_size = 4 | ||
12 | trim_trailing_whitespace = true | ||
13 | |||
14 | [*.{cs,vb}] | ||
15 | dotnet_sort_system_directives_first = true | ||
16 | |||
17 | [*.cs] | ||
18 | csharp_indent_case_contents = true : error | ||
19 | csharp_indent_switch_labels = true : error | ||
20 | csharp_new_line_before_open_brace = all | ||
21 | csharp_prefer_braces = true : error | ||
22 | csharp_style_expression_bodied_methods = when_on_single_line : suggestion | ||
23 | csharp_style_expression_bodied_constructors = when_on_single_line : suggestion | ||
24 | csharp_style_expression_bodied_operators = when_on_single_line : suggestion | ||
25 | csharp_style_expression_bodied_properties = when_on_single_line : suggestion | ||
26 | csharp_style_expression_bodied_indexers = when_on_single_line : suggestion | ||
27 | csharp_style_expression_bodied_accessors = when_on_single_line : suggestion | ||
28 | csharp_style_var_elsewhere = true : suggestion | ||
29 | csharp_style_var_for_built_in_types = true : suggestion | ||
30 | csharp_style_var_when_type_is_apparent = true : suggestion | ||
31 | dotnet_style_qualification_for_event = true : error | ||
32 | dotnet_style_qualification_for_field = true : error | ||
33 | dotnet_style_qualification_for_method = true : error | ||
34 | dotnet_style_qualification_for_property = true : error | ||
35 | |||
36 | [*.targets] | ||
37 | indent_size = 2 | ||
@@ -4,6 +4,7 @@ | |||
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore |
5 | 5 | ||
6 | # User-specific files | 6 | # User-specific files |
7 | *.rsuser | ||
7 | *.suo | 8 | *.suo |
8 | *.user | 9 | *.user |
9 | *.userosscache | 10 | *.userosscache |
@@ -19,7 +20,8 @@ | |||
19 | [Rr]eleases/ | 20 | [Rr]eleases/ |
20 | x64/ | 21 | x64/ |
21 | x86/ | 22 | x86/ |
22 | [Ww]in32/ | 23 | [Aa][Rr][Mm]/ |
24 | [Aa][Rr][Mm]64/ | ||
23 | bld/ | 25 | bld/ |
24 | [Bb]in/ | 26 | [Bb]in/ |
25 | [Oo]bj/ | 27 | [Oo]bj/ |
@@ -77,6 +79,7 @@ StyleCopReport.xml | |||
77 | *.tlh | 79 | *.tlh |
78 | *.tmp | 80 | *.tmp |
79 | *.tmp_proj | 81 | *.tmp_proj |
82 | *_wpftmp.csproj | ||
80 | *.log | 83 | *.log |
81 | *.vspscc | 84 | *.vspscc |
82 | *.vssscc | 85 | *.vssscc |
@@ -208,7 +211,7 @@ _pkginfo.txt | |||
208 | # files ending in .cache can be ignored | 211 | # files ending in .cache can be ignored |
209 | *.[Cc]ache | 212 | *.[Cc]ache |
210 | # but keep track of directories ending in .cache | 213 | # but keep track of directories ending in .cache |
211 | !*.[Cc]ache/ | 214 | !?*.[Cc]ache/ |
212 | 215 | ||
213 | # Others | 216 | # Others |
214 | ClientBin/ | 217 | ClientBin/ |
@@ -228,6 +231,8 @@ orleans.codegen.cs | |||
228 | # Since there are multiple workflows, uncomment next line to ignore bower_components | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components |
229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) | 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
230 | #bower_components/ | 233 | #bower_components/ |
234 | # ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true | ||
235 | **/wwwroot/lib/ | ||
231 | 236 | ||
232 | # RIA/Silverlight projects | 237 | # RIA/Silverlight projects |
233 | Generated_Code/ | 238 | Generated_Code/ |
@@ -291,8 +296,8 @@ paket-files/ | |||
291 | .idea/ | 296 | .idea/ |
292 | *.sln.iml | 297 | *.sln.iml |
293 | 298 | ||
294 | # CodeRush | 299 | # CodeRush personal settings |
295 | .cr/ | 300 | .cr/personal |
296 | 301 | ||
297 | # Python Tools for Visual Studio (PTVS) | 302 | # Python Tools for Visual Studio (PTVS) |
298 | __pycache__/ | 303 | __pycache__/ |
@@ -331,3 +336,6 @@ ASALocalRun/ | |||
331 | 336 | ||
332 | # Local History for Visual Studio | 337 | # Local History for Visual Studio |
333 | .localhistory/ | 338 | .localhistory/ |
339 | |||
340 | # BeatPulse healthcheck temp database | ||
341 | healthchecksdb | ||
diff --git a/appveyor.yml b/appveyor.yml index 0c74d54b..d55322da 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -1,3 +1,8 @@ | |||
1 | # Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | # | ||
3 | # Do NOT modify this file. Update the canonical version in Home\repo-template\src\appveyor.yml | ||
4 | # then update all of the repos. | ||
5 | |||
1 | image: Visual Studio 2017 | 6 | image: Visual Studio 2017 |
2 | 7 | ||
3 | version: 0.0.0.{build} | 8 | version: 0.0.0.{build} |
@@ -17,6 +22,7 @@ pull_requests: | |||
17 | nuget: | 22 | nuget: |
18 | disable_publish_on_pr: true | 23 | disable_publish_on_pr: true |
19 | 24 | ||
25 | skip_branch_with_pr: true | ||
20 | skip_tags: true | 26 | skip_tags: true |
21 | 27 | ||
22 | artifacts: | 28 | artifacts: |
diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 9eacf3f5..e853e22d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props | |||
@@ -1,7 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
3 | <!-- | 3 | <!-- |
4 | Do NOT modify this file. Update the canonical version in Home\src\Directory.Build.props | 4 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\Directory.Build.props |
5 | then update all of the repos. | 5 | then update all of the repos. |
6 | --> | 6 | --> |
7 | <Project> | 7 | <Project> |
@@ -10,20 +10,17 @@ | |||
10 | <EnableSourceLink Condition=" '$(NCrunch)' == '1' ">false</EnableSourceLink> | 10 | <EnableSourceLink Condition=" '$(NCrunch)' == '1' ">false</EnableSourceLink> |
11 | 11 | ||
12 | <ProjectName Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName> | 12 | <ProjectName Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName> |
13 | <BaseOutputPath>$(MSBuildThisFileDirectory)..\build\</BaseOutputPath> | 13 | <BaseOutputPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\build\))</BaseOutputPath> |
14 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(ProjectName)\</BaseIntermediateOutputPath> | 14 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(ProjectName)\</BaseIntermediateOutputPath> |
15 | <OutputPath>$(BaseOutputPath)$(Configuration)\</OutputPath> | 15 | <OutputPath>$(BaseOutputPath)$(Configuration)\</OutputPath> |
16 | 16 | ||
17 | <Authors>WiX Toolset Team</Authors> | 17 | <Authors>WiX Toolset Team</Authors> |
18 | <Company>WiX Toolset</Company> | 18 | <Company>WiX Toolset</Company> |
19 | <Copyright>Copyright (c) .NET Foundation and contributors. All rights reserved.</Copyright> | 19 | <Copyright>Copyright (c) .NET Foundation and contributors. All rights reserved.</Copyright> |
20 | <PackageLicenseExpression>MS-RL</PackageLicenseExpression> | ||
20 | <Product>WiX Toolset</Product> | 21 | <Product>WiX Toolset</Product> |
21 | </PropertyGroup> | 22 | </PropertyGroup> |
22 | 23 | ||
23 | <PropertyGroup> | ||
24 | <WixToolsetRootFolder>$(MSBuildThisFileDirectory)..\..\</WixToolsetRootFolder> | ||
25 | </PropertyGroup> | ||
26 | |||
27 | <Import Project="Cpp.Build.props" Condition=" '$(MSBuildProjectExtension)'=='.vcxproj' " /> | 24 | <Import Project="Cpp.Build.props" Condition=" '$(MSBuildProjectExtension)'=='.vcxproj' " /> |
28 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> | 25 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> |
29 | </Project> | 26 | </Project> |
diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets new file mode 100644 index 00000000..dac7452a --- /dev/null +++ b/src/Directory.Build.targets | |||
@@ -0,0 +1,48 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
3 | <!-- | ||
4 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\Directory.Build.targets | ||
5 | then update all of the repos. | ||
6 | --> | ||
7 | <!-- | ||
8 | Replace PackageReferences with ProjectReferences when the projects can be found in .sln. | ||
9 | See the original here: https://github.com/dotnet/sdk/issues/1151#issuecomment-385133284 | ||
10 | --> | ||
11 | <Project> | ||
12 | <PropertyGroup> | ||
13 | <ReplacePackageReferences>true</ReplacePackageReferences> | ||
14 | <TheSolutionPath Condition=" '$(NCrunch)'=='' ">$(SolutionPath)</TheSolutionPath> | ||
15 | <TheSolutionPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalSolutionPath)</TheSolutionPath> | ||
16 | </PropertyGroup> | ||
17 | |||
18 | <Choose> | ||
19 | <When Condition="$(ReplacePackageReferences) AND '$(TheSolutionPath)' != '' AND '$(TheSolutionPath)' != '*undefined*' AND Exists('$(TheSolutionPath)')"> | ||
20 | |||
21 | <PropertyGroup> | ||
22 | <SolutionFileContent>$([System.IO.File]::ReadAllText($(TheSolutionPath)))</SolutionFileContent> | ||
23 | <SmartSolutionDir>$([System.IO.Path]::GetDirectoryName( $(TheSolutionPath) ))</SmartSolutionDir> | ||
24 | <RegexPattern>(?<="[PackageName]", ")(.*)(?=", ")</RegexPattern> | ||
25 | </PropertyGroup> | ||
26 | |||
27 | <ItemGroup> | ||
28 | <!-- Keep the identity of the PackageReference --> | ||
29 | <SmartPackageReference Include="@(PackageReference)"> | ||
30 | <PackageName>%(Identity)</PackageName> | ||
31 | <InSolution>$(SolutionFileContent.Contains('\%(Identity).csproj'))</InSolution> | ||
32 | </SmartPackageReference> | ||
33 | |||
34 | <!-- Filter them by mapping them to another ItemGroup using the WithMetadataValue item function --> | ||
35 | <PackageInSolution Include="@(SmartPackageReference->WithMetadataValue('InSolution', True))"> | ||
36 | <Pattern>$(RegexPattern.Replace('[PackageName]','%(PackageName)') )</Pattern> | ||
37 | <SmartPath>$([System.Text.RegularExpressions.Regex]::Match('$(SolutionFileContent)', '%(Pattern)'))</SmartPath> | ||
38 | </PackageInSolution> | ||
39 | |||
40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> | ||
41 | |||
42 | <!-- Remove the package references that are now referenced as projects --> | ||
43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)' )"/> | ||
44 | </ItemGroup> | ||
45 | |||
46 | </When> | ||
47 | </Choose> | ||
48 | </Project> | ||
diff --git a/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec b/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec index 3394f8ab..25034078 100644 --- a/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec +++ b/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec | |||
@@ -5,7 +5,8 @@ | |||
5 | <version>$version$</version> | 5 | <version>$version$</version> |
6 | <authors>$authors$</authors> | 6 | <authors>$authors$</authors> |
7 | <owners>$authors$</owners> | 7 | <owners>$authors$</owners> |
8 | <licenseUrl>https://github.com/wixtoolset/Core.Native/blob/master/LICENSE.TXT</licenseUrl> | 8 | <!-- <license type="expression">MS-RL</license> --> |
9 | <licenseUrl>https://licenses.nuget.org/MS-RL</licenseUrl> | ||
9 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> | 10 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> |
10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 11 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
11 | <description>$description$</description> | 12 | <description>$description$</description> |
diff --git a/src/winterop/runtime.win-xxx.WixToolset.Core.Native.nuspec b/src/winterop/runtime.win-xxx.WixToolset.Core.Native.nuspec index 87cf0919..18676197 100644 --- a/src/winterop/runtime.win-xxx.WixToolset.Core.Native.nuspec +++ b/src/winterop/runtime.win-xxx.WixToolset.Core.Native.nuspec | |||
@@ -5,7 +5,8 @@ | |||
5 | <version>$version$</version> | 5 | <version>$version$</version> |
6 | <authors>$authors$</authors> | 6 | <authors>$authors$</authors> |
7 | <owners>$authors$</owners> | 7 | <owners>$authors$</owners> |
8 | <licenseUrl>https://github.com/wixtoolset/Core.Native/blob/master/LICENSE.TXT</licenseUrl> | 8 | <!-- <license type="expression">MS-RL</license> --> |
9 | <licenseUrl>https://licenses.nuget.org/MS-RL</licenseUrl> | ||
9 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> | 10 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> |
10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 11 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
11 | <description>$description$</description> | 12 | <description>$description$</description> |
diff --git a/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec b/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec index d2b9c1e7..f7697694 100644 --- a/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec +++ b/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec | |||
@@ -5,7 +5,8 @@ | |||
5 | <version>$version$</version> | 5 | <version>$version$</version> |
6 | <authors>$authors$</authors> | 6 | <authors>$authors$</authors> |
7 | <owners>$authors$</owners> | 7 | <owners>$authors$</owners> |
8 | <licenseUrl>https://github.com/wixtoolset/Core.Native/blob/master/LICENSE.TXT</licenseUrl> | 8 | <!-- <license type="expression">MS-RL</license> --> |
9 | <licenseUrl>https://licenses.nuget.org/MS-RL</licenseUrl> | ||
9 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> | 10 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> |
10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 11 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
11 | <description>$description$</description> | 12 | <description>$description$</description> |