aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-12-23 09:02:53 -0800
committerRob Mensching <rob@firegiant.com>2018-12-23 09:02:53 -0800
commit8f70bee13a22cc8b8b1a76825c5051100c9bdd2f (patch)
tree87a11d129c96608e8e888a110af5b6d83a00ff1c
parent95a5a8f9efef02ddcec5b3f69be99a00d71a802a (diff)
downloadwix-8f70bee13a22cc8b8b1a76825c5051100c9bdd2f.tar.gz
wix-8f70bee13a22cc8b8b1a76825c5051100c9bdd2f.tar.bz2
wix-8f70bee13a22cc8b8b1a76825c5051100c9bdd2f.zip
Update to latest Home\repo-template
-rw-r--r--.editorconfig37
-rw-r--r--.gitignore72
-rw-r--r--appveyor.yml6
-rw-r--r--src/Directory.Build.props9
-rw-r--r--src/Directory.Build.targets48
-rw-r--r--src/test/WixToolsetTest.Iis/WixToolsetTest.Iis.csproj6
-rw-r--r--src/wixext/WixToolset.Iis.wixext.csproj7
7 files changed, 156 insertions, 29 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
6root = true
7
8[*]
9charset = utf-8
10indent_style = space
11indent_size = 4
12trim_trailing_whitespace = true
13
14[*.{cs,vb}]
15dotnet_sort_system_directives_first = true
16
17[*.cs]
18csharp_indent_case_contents = true : error
19csharp_indent_switch_labels = true : error
20csharp_new_line_before_open_brace = all
21csharp_prefer_braces = true : error
22csharp_style_expression_bodied_methods = when_on_single_line : suggestion
23csharp_style_expression_bodied_constructors = when_on_single_line : suggestion
24csharp_style_expression_bodied_operators = when_on_single_line : suggestion
25csharp_style_expression_bodied_properties = when_on_single_line : suggestion
26csharp_style_expression_bodied_indexers = when_on_single_line : suggestion
27csharp_style_expression_bodied_accessors = when_on_single_line : suggestion
28csharp_style_var_elsewhere = true : suggestion
29csharp_style_var_for_built_in_types = true : suggestion
30csharp_style_var_when_type_is_apparent = true : suggestion
31dotnet_style_qualification_for_event = true : error
32dotnet_style_qualification_for_field = true : error
33dotnet_style_qualification_for_method = true : error
34dotnet_style_qualification_for_property = true : error
35
36[*.targets]
37indent_size = 2
diff --git a/.gitignore b/.gitignore
index 3c6208a8..3e8a1553 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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,16 +20,21 @@
19[Rr]eleases/ 20[Rr]eleases/
20x64/ 21x64/
21x86/ 22x86/
23[Aa][Rr][Mm]/
24[Aa][Rr][Mm]64/
22bld/ 25bld/
23[Bb]in/ 26[Bb]in/
24[Oo]bj/ 27[Oo]bj/
25[Ll]og/ 28[Ll]og/
26 29
27# Visual Studio 2015 cache/options directory 30# Visual Studio 2015/2017 cache/options directory
28.vs/ 31.vs/
29# Uncomment if you have tasks that create the project's static files in wwwroot 32# Uncomment if you have tasks that create the project's static files in wwwroot
30#wwwroot/ 33#wwwroot/
31 34
35# Visual Studio 2017 auto generated files
36Generated\ Files/
37
32# MSTest test Results 38# MSTest test Results
33[Tt]est[Rr]esult*/ 39[Tt]est[Rr]esult*/
34[Bb]uild[Ll]og.* 40[Bb]uild[Ll]og.*
@@ -49,16 +55,21 @@ BenchmarkDotNet.Artifacts/
49project.lock.json 55project.lock.json
50project.fragment.lock.json 56project.fragment.lock.json
51artifacts/ 57artifacts/
52**/Properties/launchSettings.json
53 58
59# StyleCop
60StyleCopReport.xml
61
62# Files built by Visual Studio
54*_i.c 63*_i.c
55*_p.c 64*_p.c
56*_i.h 65*_h.h
57*.ilk 66*.ilk
58*.meta 67*.meta
59*.obj 68*.obj
69*.iobj
60*.pch 70*.pch
61*.pdb 71*.pdb
72*.ipdb
62*.pgc 73*.pgc
63*.pgd 74*.pgd
64*.rsp 75*.rsp
@@ -68,6 +79,7 @@ artifacts/
68*.tlh 79*.tlh
69*.tmp 80*.tmp
70*.tmp_proj 81*.tmp_proj
82*_wpftmp.csproj
71*.log 83*.log
72*.vspscc 84*.vspscc
73*.vssscc 85*.vssscc
@@ -96,6 +108,9 @@ ipch/
96*.vspx 108*.vspx
97*.sap 109*.sap
98 110
111# Visual Studio Trace Files
112*.e2e
113
99# TFS 2012 Local Workspace 114# TFS 2012 Local Workspace
100$tf/ 115$tf/
101 116
@@ -116,6 +131,10 @@ _TeamCity*
116# DotCover is a Code Coverage Tool 131# DotCover is a Code Coverage Tool
117*.dotCover 132*.dotCover
118 133
134# AxoCover is a Code Coverage Tool
135.axoCover/*
136!.axoCover/settings.json
137
119# Visual Studio code coverage results 138# Visual Studio code coverage results
120*.coverage 139*.coverage
121*.coveragexml 140*.coveragexml
@@ -164,11 +183,11 @@ PublishScripts/
164# NuGet Packages 183# NuGet Packages
165*.nupkg 184*.nupkg
166# The packages folder can be ignored because of Package Restore 185# The packages folder can be ignored because of Package Restore
167**/packages/* 186**/[Pp]ackages/*
168# except build/, which is used as an MSBuild target. 187# except build/, which is used as an MSBuild target.
169!**/packages/build/ 188!**/[Pp]ackages/build/
170# Uncomment if necessary however generally it will be regenerated when needed 189# Uncomment if necessary however generally it will be regenerated when needed
171#!**/packages/repositories.config 190#!**/[Pp]ackages/repositories.config
172# NuGet v3's project.json files produces more ignorable files 191# NuGet v3's project.json files produces more ignorable files
173*.nuget.props 192*.nuget.props
174*.nuget.targets 193*.nuget.targets
@@ -192,7 +211,7 @@ _pkginfo.txt
192# files ending in .cache can be ignored 211# files ending in .cache can be ignored
193*.[Cc]ache 212*.[Cc]ache
194# but keep track of directories ending in .cache 213# but keep track of directories ending in .cache
195!*.[Cc]ache/ 214!?*.[Cc]ache/
196 215
197# Others 216# Others
198ClientBin/ 217ClientBin/
@@ -205,9 +224,15 @@ ClientBin/
205*.publishsettings 224*.publishsettings
206orleans.codegen.cs 225orleans.codegen.cs
207 226
227# Including strong name files can present a security risk
228# (https://github.com/github/gitignore/pull/2483#issue-259490424)
229#*.snk
230
208# 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
209# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 232# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
210#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/
211 236
212# RIA/Silverlight projects 237# RIA/Silverlight projects
213Generated_Code/ 238Generated_Code/
@@ -219,6 +244,8 @@ _UpgradeReport_Files/
219Backup*/ 244Backup*/
220UpgradeLog*.XML 245UpgradeLog*.XML
221UpgradeLog*.htm 246UpgradeLog*.htm
247ServiceFabricBackup/
248*.rptproj.bak
222 249
223# SQL Server files 250# SQL Server files
224*.mdf 251*.mdf
@@ -229,6 +256,7 @@ UpgradeLog*.htm
229*.rdl.data 256*.rdl.data
230*.bim.layout 257*.bim.layout
231*.bim_*.settings 258*.bim_*.settings
259*.rptproj.rsuser
232 260
233# Microsoft Fakes 261# Microsoft Fakes
234FakesAssemblies/ 262FakesAssemblies/
@@ -240,9 +268,6 @@ FakesAssemblies/
240.ntvs_analysis.dat 268.ntvs_analysis.dat
241node_modules/ 269node_modules/
242 270
243# Typescript v1 declaration files
244typings/
245
246# Visual Studio 6 build log 271# Visual Studio 6 build log
247*.plg 272*.plg
248 273
@@ -271,8 +296,8 @@ paket-files/
271.idea/ 296.idea/
272*.sln.iml 297*.sln.iml
273 298
274# CodeRush 299# CodeRush personal settings
275.cr/ 300.cr/personal
276 301
277# Python Tools for Visual Studio (PTVS) 302# Python Tools for Visual Studio (PTVS)
278__pycache__/ 303__pycache__/
@@ -292,4 +317,25 @@ __pycache__/
292*.btp.cs 317*.btp.cs
293*.btm.cs 318*.btm.cs
294*.odx.cs 319*.odx.cs
295*.xsd.cs \ No newline at end of file 320*.xsd.cs
321
322# OpenCover UI analysis results
323OpenCover/
324
325# Azure Stream Analytics local run output
326ASALocalRun/
327
328# MSBuild Binary and Structured Log
329*.binlog
330
331# NVidia Nsight GPU debugger configuration file
332*.nvuser
333
334# MFractors (Xamarin productivity tool) working folder
335.mfractor/
336
337# Local History for Visual Studio
338.localhistory/
339
340# BeatPulse healthcheck temp database
341healthchecksdb
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
1image: Visual Studio 2017 6image: Visual Studio 2017
2 7
3version: 0.0.0.{build} 8version: 0.0.0.{build}
@@ -17,6 +22,7 @@ pull_requests:
17nuget: 22nuget:
18 disable_publish_on_pr: true 23 disable_publish_on_pr: true
19 24
25skip_branch_with_pr: true
20skip_tags: true 26skip_tags: true
21 27
22artifacts: 28artifacts:
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>(?&lt;="[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/test/WixToolsetTest.Iis/WixToolsetTest.Iis.csproj b/src/test/WixToolsetTest.Iis/WixToolsetTest.Iis.csproj
index 92e3b8b4..76c6c5b8 100644
--- a/src/test/WixToolsetTest.Iis/WixToolsetTest.Iis.csproj
+++ b/src/test/WixToolsetTest.Iis/WixToolsetTest.Iis.csproj
@@ -23,11 +23,7 @@
23 </ItemGroup> 23 </ItemGroup>
24 24
25 <ItemGroup> 25 <ItemGroup>
26 <PackageReference Include="WixToolset.Core.TestPackage" Version="4.0.*" Condition=" '$(Configuration)' == 'Release' Or !Exists('$(WixToolsetRootFolder)\Core\README.md') " PrivateAssets="all" /> 26 <PackageReference Include="WixToolset.Core.TestPackage" Version="4.0.*" PrivateAssets="all" />
27 <ProjectReference Include="$(WixToolsetRootFolder)\Core\src\WixToolset.Core.TestPackage\WixToolset.Core.TestPackage.csproj" Condition=" '$(Configuration)' == 'Debug' And Exists('$(WixToolsetRootFolder)\Core\README.md') " />
28 <ProjectReference Include="$(WixToolsetRootFolder)\Core\src\WixToolset.Core\WixToolset.Core.csproj" Condition=" '$(Configuration)' == 'Debug' And Exists('$(WixToolsetRootFolder)\Core\README.md') " />
29 <ProjectReference Include="$(WixToolsetRootFolder)\Core\src\WixToolset.Core.Burn\WixToolset.Core.Burn.csproj" Condition=" '$(Configuration)' == 'Debug' And Exists('$(WixToolsetRootFolder)\Core\README.md') " />
30 <ProjectReference Include="$(WixToolsetRootFolder)\Core\src\WixToolset.Core.WindowsInstaller\WixToolset.Core.WindowsInstaller.csproj" Condition=" '$(Configuration)' == 'Debug' And Exists('$(WixToolsetRootFolder)\Core\README.md') " />
31 </ItemGroup> 27 </ItemGroup>
32 28
33 <ItemGroup> 29 <ItemGroup>
diff --git a/src/wixext/WixToolset.Iis.wixext.csproj b/src/wixext/WixToolset.Iis.wixext.csproj
index 28da704a..103d3c18 100644
--- a/src/wixext/WixToolset.Iis.wixext.csproj
+++ b/src/wixext/WixToolset.Iis.wixext.csproj
@@ -19,11 +19,8 @@
19 </ItemGroup> 19 </ItemGroup>
20 20
21 <ItemGroup> 21 <ItemGroup>
22 <ProjectReference Include="$(WixToolsetRootFolder)\Data\src\WixToolset.Data\WixToolset.Data.csproj" Condition=" '$(Configuration)' == 'Debug' And Exists('$(WixToolsetRootFolder)\Data\README.md') " /> 22 <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="all" />
23 <PackageReference Include="WixToolset.Data" Version="4.0.*" Condition=" '$(Configuration)' == 'Release' Or !Exists('$(WixToolsetRootFolder)\Data\README.md') " PrivateAssets="all" /> 23 <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" PrivateAssets="all" />
24
25 <ProjectReference Include="$(WixToolsetRootFolder)\Extensibility\src\WixToolset.Extensibility\WixToolset.Extensibility.csproj" Condition=" '$(Configuration)' == 'Debug' And Exists('$(WixToolsetRootFolder)\Extensibility\README.md') " />
26 <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" Condition=" '$(Configuration)' == 'Release' Or !Exists('$(WixToolsetRootFolder)\Extensibility\README.md') " PrivateAssets="all" />
27 </ItemGroup> 24 </ItemGroup>
28 25
29 <ItemGroup> 26 <ItemGroup>