Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Migrate solution to VS2017 #411

Merged
merged 55 commits into from
Apr 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a888104
Add .vscode to .gitignore
conniey Mar 10, 2017
2069651
Update solution to VS2017
conniey Feb 15, 2017
048d487
Fix duplicate import warnings because of dir.props and dir.targets
conniey Feb 15, 2017
66a1006
Microsoft.Fx.Portability: Migrate to VS2017 project
conniey Feb 15, 2017
e76d128
Microsoft.Fx.Portability.MetadataReader: Migrate to VS2017 .NET Core …
conniey Feb 15, 2017
dcf596c
Microsoft.Fx.Portability.Reports.Json: Migrate to VS2017 .NET Core pr…
conniey Feb 15, 2017
4ee4db3
Microsoft.Fx.Portability.Offline: Migrate to VS2017 .NET Core project
conniey Feb 15, 2017
59cf7cc
ApiPort: Migrate to VS2017 and combine .NET Core
conniey Feb 16, 2017
4d1b5a8
ApiPort: Remove manual app.config bindingRedirects and autogenerate them
conniey Mar 17, 2017
f156339
Remove ApiPort.Core from solution
conniey Feb 16, 2017
8e545c1
ApiPort.Vsix: Update project to VS2017
conniey Feb 16, 2017
b89b50f
ApiPort.VisualStudio: Update to VS2017
conniey Feb 16, 2017
b6f59f7
Microsoft.Fx.Portability.CCI: Migrate to VS2017 .NET Standard project
conniey Feb 16, 2017
e48df2c
SearchFxApi: Migrate to VS2017
conniey Mar 1, 2017
1eeaaf7
Microsoft.Fx.Portability.Reports.Html: Update to VS2017
conniey Mar 1, 2017
04fb4f0
Microsoft.Fx.Portability.Cci.Tests: Upgrade to VS2017
conniey Mar 10, 2017
4f5636a
Microsoft.Fx.Portability.CCI.Tests: Remove manual bindingRedirects in…
conniey Mar 17, 2017
63a2c28
Add target that removes EmbeddedResources from being compiled
conniey Mar 10, 2017
ab45503
Microsoft.Fx.Portability.MetadataReader.Tests: Migrate to VS2017
conniey Mar 11, 2017
9ced549
Microsoft.Fx.Portability.MetadataReader.Tests: Remove manual bindingR…
conniey Mar 17, 2017
882ccf5
Microsoft.Fx.Portability.Offline.Tests: Migrate to VS2017
conniey Mar 11, 2017
5eb4f98
Microsoft.Fx.Portability.Tests: Migrate to VS2017
conniey Mar 11, 2017
a9987e5
Initial migration of ApiPort.VisualStudio and ApiPort.Vsix
conniey Mar 10, 2017
39d26ce
CCI.Tests and MetdataReader.Tests: Add autogeneration of
conniey Mar 17, 2017
062f472
ApiPort: Update Microsoft package versions
conniey Mar 17, 2017
11fd9f3
Microsoft.Fx.Portability.Reports.Html: Update NuGet packages
conniey Mar 17, 2017
6d7bfff
Microsoft.Fx.Portability.MetadataReader.Tests: Update NuGet packages
conniey Mar 17, 2017
bc324a3
Microsoft.Fx.Portability: Update NuGet packages
conniey Mar 17, 2017
6cec1c3
Microsoft.Fx.Portability.Cci.Tests: Update NuGet packages
conniey Mar 17, 2017
1167327
ApiPortVS.Tests: Remove manual bindingRedirects
conniey Mar 17, 2017
bface83
Update System.Reflection.Metadata to 1.4.2
conniey Apr 3, 2017
69f04ea
Fix tests for VS2017
conniey Apr 3, 2017
99964b1
Microsoft.Fx.Portability.MetadataReader.Tests: Uncomment test after u…
conniey Apr 3, 2017
ea56751
ApiPort.VisualStudio: Fix build errors from upgrade
conniey Apr 3, 2017
89b6adc
ApiPortVS.Tests: Update NuGet packages
conniey Apr 3, 2017
aae9835
ApiPort: Remove explicit inclusion of app.config
conniey Apr 3, 2017
80614e2
ApiPort.Vsix: Revert project.json to packages.config due to NuGet/iss…
conniey Apr 4, 2017
e84edc2
ApiPort.VisualStudio: Revert project.json to packages.config due to N…
conniey Apr 4, 2017
04a6294
ApiPort.Vsix: Add app.config
conniey Apr 4, 2017
64ddeb8
ApiPortVS.Tests: Revert project.json to packages.config
conniey Apr 5, 2017
b396669
Disable <WarningsAsErrors> because of CS1701 runtime policy warnings.
conniey Apr 5, 2017
70b0d56
ApiPort: Update Autofac.
conniey Apr 5, 2017
79687d1
Microsoft.Fx.Portability.Cci: Add compiler directive for NETSTANDARD1_6
conniey Apr 5, 2017
9d36f49
Update Get-BuildTools to NuGet v4.0.0
conniey Apr 5, 2017
198d333
ApiPort: Fix System.Diagnostics.DiagnosticSource not found runtime er…
conniey Apr 5, 2017
02f4477
Add Microsoft.TestHost to all projects so they run
conniey Apr 5, 2017
035f084
Replace References with NuGet packages so people without VSIX Support…
conniey Apr 5, 2017
08b1057
Adding Set-VsDevEnv.ps1 cmdlet
conniey Apr 7, 2017
38a8d9d
Build Scripts: Update to find installed Visual studio 2017
conniey Apr 10, 2017
37337de
ApiPort.VisualStudio: Fix Release build
conniey Apr 10, 2017
5c76e2b
ApiPort.Vsix: Deploying extension during debug
conniey Apr 10, 2017
dc39eff
ApiPort.Vsix: Updated installation targets. Added import of VisualStu…
conniey Apr 14, 2017
ab9a15a
ApiPort.VisualStudio: Update project so it outputs a vsix that can be…
conniey Apr 12, 2017
6d1595c
Microsoft.Fx.Portability.Offline: Consolidate Autofac versions
conniey Apr 18, 2017
5c5a5c9
Update compiler directives to FEATURE_[NAME]
conniey Apr 20, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ src/Microsoft.Fx.Portability.Offline/data/
.tools/
.data
*.nuget.props
*.nuget.targets
*.nuget.targets
.vscode
91 changes: 23 additions & 68 deletions PortabilityTools.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26214.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C991F5FC-04B5-420C-98A0-80974AA946F7}"
ProjectSection(SolutionItems) = preProject
Expand All @@ -20,41 +20,41 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{7DC7AA2C-0
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{F8292A68-AF7C-4B26-B1B8-B232548EF118}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{FEEF35CB-3AC4-40C5-9CB0-85E52E38D5C6}"
ProjectSection(SolutionItems) = preProject
build\Get-Nuget.ps1 = build\Get-Nuget.ps1
build\Microsoft.Fx.Portability.MetadataReader.nuspec = build\Microsoft.Fx.Portability.MetadataReader.nuspec
build\Microsoft.Fx.Portability.nuspec = build\Microsoft.Fx.Portability.nuspec
build\Microsoft.Fx.Portability.Offline.nuspec = build\Microsoft.Fx.Portability.Offline.nuspec
build\Microsoft.Fx.Portability.Reports.Html.nuspec = build\Microsoft.Fx.Portability.Reports.Html.nuspec
build\Microsoft.Fx.Portability.Reports.Json.nuspec = build\Microsoft.Fx.Portability.Reports.Json.nuspec
build\package.ps1 = build\package.ps1
build\postbuild.ps1 = build\postbuild.ps1
build\restore.ps1 = build\restore.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApiPort", "ApiPort", "{0D1724F6-078E-4576-9680-6B9334D562DC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPort", "src\ApiPort\ApiPort.csproj", "{5A2EAD0F-FF3E-4968-A865-7B29C4B10A72}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.MetadataReader.Tests", "tests\Microsoft.Fx.Portability.MetadataReader.Tests\Microsoft.Fx.Portability.MetadataReader.Tests.csproj", "{B44085A7-0DCD-4CE2-BDD9-B2E5268DCCCC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.Reports.Html", "src\Microsoft.Fx.Portability.Reports.Html\Microsoft.Fx.Portability.Reports.Html.csproj", "{83F4A5FE-FAF8-4952-899E-EA0BB08F8E60}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.Offline", "src\Microsoft.Fx.Portability.Offline\Microsoft.Fx.Portability.Offline.csproj", "{F3D148CA-D49D-4315-9CD6-AE7B0EEA9549}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Fx.Portability.Offline", "src\Microsoft.Fx.Portability.Offline\Microsoft.Fx.Portability.Offline.csproj", "{F3D148CA-D49D-4315-9CD6-AE7B0EEA9549}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability", "src\Microsoft.Fx.Portability\Microsoft.Fx.Portability.csproj", "{8D84EC23-9977-4CC8-B649-035FFAE9664C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Fx.Portability", "src\Microsoft.Fx.Portability\Microsoft.Fx.Portability.csproj", "{8D84EC23-9977-4CC8-B649-035FFAE9664C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.MetadataReader", "src\Microsoft.Fx.Portability.MetadataReader\Microsoft.Fx.Portability.MetadataReader.csproj", "{68C6476E-1F80-412A-A8A7-480F832922D8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Fx.Portability.MetadataReader", "src\Microsoft.Fx.Portability.MetadataReader\Microsoft.Fx.Portability.MetadataReader.csproj", "{68C6476E-1F80-412A-A8A7-480F832922D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.Tests", "tests\Microsoft.Fx.Portability.Tests\Microsoft.Fx.Portability.Tests.csproj", "{36E8F09A-D3CA-405B-B515-9206F85B432C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SearchFxApi", "samples\SearchFxApi\SearchFxApi.csproj", "{16815A46-F1CA-4D56-80C8-54C4DFB8C1BC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.Reports.Json", "src\Microsoft.Fx.Portability.Reports.Json\Microsoft.Fx.Portability.Reports.Json.csproj", "{28D8D77D-E68D-4EBC-9150-F7C433D63BFA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{FEEF35CB-3AC4-40C5-9CB0-85E52E38D5C6}"
ProjectSection(SolutionItems) = preProject
build\Get-Nuget.ps1 = build\Get-Nuget.ps1
build\Microsoft.Fx.Portability.MetadataReader.nuspec = build\Microsoft.Fx.Portability.MetadataReader.nuspec
build\Microsoft.Fx.Portability.nuspec = build\Microsoft.Fx.Portability.nuspec
build\Microsoft.Fx.Portability.Offline.nuspec = build\Microsoft.Fx.Portability.Offline.nuspec
build\Microsoft.Fx.Portability.Reports.Html.nuspec = build\Microsoft.Fx.Portability.Reports.Html.nuspec
build\Microsoft.Fx.Portability.Reports.Json.nuspec = build\Microsoft.Fx.Portability.Reports.Json.nuspec
build\package.ps1 = build\package.ps1
build\postbuild.ps1 = build\postbuild.ps1
build\restore.ps1 = build\restore.ps1
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Fx.Portability.Reports.Json", "src\Microsoft.Fx.Portability.Reports.Json\Microsoft.Fx.Portability.Reports.Json.csproj", "{28D8D77D-E68D-4EBC-9150-F7C433D63BFA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.Offline.Tests", "tests\Microsoft.Fx.Portability.Offline.Tests\Microsoft.Fx.Portability.Offline.Tests.csproj", "{FD6B4124-975B-454E-ACC8-424CC9A8BB8B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApiPort", "ApiPort", "{0D1724F6-078E-4576-9680-6B9334D562DC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPort.Vsix", "src\ApiPort.Vsix\ApiPort.Vsix.csproj", "{C4301817-D6F9-43A4-9E24-5446C0A2C15C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPort.VisualStudio", "src\ApiPort.VisualStudio\ApiPort.VisualStudio.csproj", "{D15030D8-CFC5-4F05-8987-784326856E90}"
Expand All @@ -65,8 +65,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPortVS.Tests", "tests\Ap
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Fx.Portability.Cci.Tests", "tests\Microsoft.Fx.Portability.Cci.Tests\Microsoft.Fx.Portability.Cci.Tests.csproj", "{6917BF09-E416-43F9-B184-4691AF473271}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPort.Core", "src\ApiPort\ApiPort.Core.csproj", "{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -743,53 +741,13 @@ Global
{6917BF09-E416-43F9-B184-4691AF473271}.Ubuntu_Release|x64.Build.0 = Release|Any CPU
{6917BF09-E416-43F9-B184-4691AF473271}.Ubuntu_Release|x86.ActiveCfg = Release|Any CPU
{6917BF09-E416-43F9-B184-4691AF473271}.Ubuntu_Release|x86.Build.0 = Release|Any CPU
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|Any CPU.ActiveCfg = Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|ARM.ActiveCfg = Debug|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|ARM.Build.0 = Debug|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|x64.ActiveCfg = Debug|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|x64.Build.0 = Debug|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|x86.ActiveCfg = Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Debug|x86.Build.0 = Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|Any CPU.ActiveCfg = Osx_Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|ARM.ActiveCfg = Osx_Debug|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|ARM.Build.0 = Osx_Debug|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|x64.ActiveCfg = Osx_Debug|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|x64.Build.0 = Osx_Debug|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|x86.ActiveCfg = Osx_Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Debug|x86.Build.0 = Osx_Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|Any CPU.ActiveCfg = Osx_Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|ARM.ActiveCfg = Osx_Release|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|ARM.Build.0 = Osx_Release|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|x64.ActiveCfg = Osx_Release|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|x64.Build.0 = Osx_Release|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|x86.ActiveCfg = Osx_Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Osx_Release|x86.Build.0 = Osx_Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|Any CPU.ActiveCfg = Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|ARM.ActiveCfg = Release|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|ARM.Build.0 = Release|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|x64.ActiveCfg = Release|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|x64.Build.0 = Release|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|x86.ActiveCfg = Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Release|x86.Build.0 = Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|Any CPU.ActiveCfg = Ubuntu_Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|ARM.ActiveCfg = Ubuntu_Debug|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|ARM.Build.0 = Ubuntu_Debug|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|x64.ActiveCfg = Ubuntu_Debug|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|x64.Build.0 = Ubuntu_Debug|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|x86.ActiveCfg = Ubuntu_Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Debug|x86.Build.0 = Ubuntu_Debug|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|Any CPU.ActiveCfg = Ubuntu_Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|ARM.ActiveCfg = Ubuntu_Release|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|ARM.Build.0 = Ubuntu_Release|arm
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|x64.ActiveCfg = Ubuntu_Release|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|x64.Build.0 = Ubuntu_Release|x64
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|x86.ActiveCfg = Ubuntu_Release|x86
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B}.Ubuntu_Release|x86.Build.0 = Ubuntu_Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{FEEF35CB-3AC4-40C5-9CB0-85E52E38D5C6} = {C991F5FC-04B5-420C-98A0-80974AA946F7}
{0D1724F6-078E-4576-9680-6B9334D562DC} = {6234AABE-C4F3-4094-9C0D-FFD589235DBE}
{5A2EAD0F-FF3E-4968-A865-7B29C4B10A72} = {0D1724F6-078E-4576-9680-6B9334D562DC}
{B44085A7-0DCD-4CE2-BDD9-B2E5268DCCCC} = {7DC7AA2C-0401-495B-B42C-32F44085EBE6}
{83F4A5FE-FAF8-4952-899E-EA0BB08F8E60} = {6234AABE-C4F3-4094-9C0D-FFD589235DBE}
Expand All @@ -799,14 +757,11 @@ Global
{36E8F09A-D3CA-405B-B515-9206F85B432C} = {7DC7AA2C-0401-495B-B42C-32F44085EBE6}
{16815A46-F1CA-4D56-80C8-54C4DFB8C1BC} = {F8292A68-AF7C-4B26-B1B8-B232548EF118}
{28D8D77D-E68D-4EBC-9150-F7C433D63BFA} = {6234AABE-C4F3-4094-9C0D-FFD589235DBE}
{FEEF35CB-3AC4-40C5-9CB0-85E52E38D5C6} = {C991F5FC-04B5-420C-98A0-80974AA946F7}
{FD6B4124-975B-454E-ACC8-424CC9A8BB8B} = {7DC7AA2C-0401-495B-B42C-32F44085EBE6}
{0D1724F6-078E-4576-9680-6B9334D562DC} = {6234AABE-C4F3-4094-9C0D-FFD589235DBE}
{C4301817-D6F9-43A4-9E24-5446C0A2C15C} = {0D1724F6-078E-4576-9680-6B9334D562DC}
{D15030D8-CFC5-4F05-8987-784326856E90} = {0D1724F6-078E-4576-9680-6B9334D562DC}
{B0468D19-0F98-49A8-BA28-926331C72E26} = {6234AABE-C4F3-4094-9C0D-FFD589235DBE}
{2D8DA586-E0EA-4AD1-BA3C-E4AC0310A45E} = {7DC7AA2C-0401-495B-B42C-32F44085EBE6}
{6917BF09-E416-43F9-B184-4691AF473271} = {7DC7AA2C-0401-495B-B42C-32F44085EBE6}
{560DD4EB-C4D2-4F94-9695-931CD3D17B5B} = {0D1724F6-078E-4576-9680-6B9334D562DC}
EndGlobalSection
EndGlobal
43 changes: 38 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,43 @@ param(
[switch]$RunTests,
[switch]$CreateNugetPackages,

[string]$VersionSuffix = "alpha"
[string]$VersionSuffix = "alpha",

[ValidateSet(2015, 2017)]
[int]$VisualStudioVersion = 2017
)

$ErrorActionPreference = "Stop"

$root = $PSScriptRoot

& $root\build\Set-VsDevEnv.ps1 -VisualstudioVersion $VisualStudioVersion

$MSBuildCommand = $(Get-Command "MSBuild.exe" -CommandType Application -ErrorAction Ignore)

if ($MSBuildCommand -eq $null) {
Write-Error "Could not set visual studio $VisualStudioVersion environment and locate msbuild!"
}

if ($VisualStudioVersion -eq 2017) {
$MSBuildVersion = 15
} elseif ($VisualStudioVersion -eq 2015) {
$MSBuildVersion = 14
} else {
Write-Error "This VisualStudio version [$VisualStudioVersion] is not recognized."
}


$MSBuildCommand = $MSBuildCommand | ? { $_.Version.Major -eq $MSBuildVersion } | Select -First 1

if ($MSBuildCommand -eq $null) {
Write-Error "Could not locate MSBuild $MSBuildVersion using Visual Studio $VisualStudioVersion developer command prompt"
}

$MSBuild = $MSBuildCommand.Path

Write-Host "MSBUILD: $MSBuild"

# Libraries are currently pre-release
$env:VersionSuffix = $VersionSuffix

Expand All @@ -29,19 +61,20 @@ if (!(Test-Path $binFolder)) {
New-Item $binFolder -ItemType Directory
}

.\build\restore.ps1

$MSBuild = Join-Path ${env:ProgramFiles(x86)} "MSBuild\14.0\bin\MSBuild.exe"

& $root\build\restore.ps1
# PortabilityTools.sln understands "Any CPU" not "AnyCPU"
$PlatformToUse = $Platform

if ($Platform -eq "AnyCPU") {
$PlatformToUse = "Any CPU"
}

pushd $root

& $MSBuild PortabilityTools.sln /p:Configuration=$Configuration /p:Platform="$PlatformToUse" /nologo /m /v:m /nr:false /flp:logfile=$binFolder\msbuild.log`;verbosity=$Verbosity

popd

if ($RunTests) {
.\build\runtests.ps1 $Configuration
}
Expand Down
9 changes: 5 additions & 4 deletions build/Get-BuildTools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ $destination = $null
switch($ToolToFetch)
{
"nuget" {
# TODO Once nuget v3.5.0 is officially released, we'll go back to using the
# `latest` URI. v3.4.0 does not understand restoring packages for .NETCoreApp,
# while results in a lot of errors.
# TODO Once nuget v4.0.0 is the latest, we'll go back to using the
# `latest` URI. v3.5.0 does not understand restoring packages for VS 2017
# projects.

# $uri = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"

$uri = "https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe"
$uri = "https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe"
$destination = Join-Path $tools "nuget.exe"
}
"vsix" {
Expand Down
81 changes: 81 additions & 0 deletions build/Set-VsDevEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
[CmdletBinding(DefaultParameterSetName = "Default")] # Needed to support -Verbose
param(
[Parameter(ParameterSetName=’Default’, Mandatory=$true, Position=0)]
[ValidateSet(2015,2017)]
[int]$VisualstudioVersion,

[Parameter(ParameterSetName=’PathGiven’, Mandatory=$true)]
[ValidateScript({Test-Path $_ })]
[string]$VsDevCmdPath
)

$ErrorActionPreference = "Stop"

[bool]$findVsVersion = $true

if ($PSCmdlet.ParameterSetName -eq "PathGiven") {
$findVsVersion = $false
}

[string]$commonToolsPath = $null
[string]$VsDevCmdBat = "VsDevCmd.bat"

if ($findVsVersion) {
switch ($VisualstudioVersion) {
2015
{
$commonToolsPath = $env:VS140COMNTOOLS
}
2017
{
$microsoftVisualStudio = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2017"

if (Test-Path $microsoftVisualStudio) {
$installations = Get-ChildItem $microsoftVisualStudio | ? { $_.PsIsContainer }

foreach ($installation in $installations) {
$path = Join-Path $installation.FullName "Common7\Tools\"

if (Test-Path $path) {
$commonToolsPath = $path
break
}
}
} else {
Write-Error "Could not locate: $microsoftVisualStudio. Pass path to $VsDevCmdBat using parameter -VsDevCmdPath."
}
}
}

if ([string]::IsNullOrEmpty($commonToolsPath)) {
Write-Error "Could not find Common Tools for Visual Studio $VisualstudioVersion"
}

$devEnv = Join-Path $commonToolsPath $VsDevCmdBat

if (!(Test-Path $devEnv)) {
Write-Error "Could not find VsDevCmd.bat for Visual Studio $VisualstudioVersion. Path: $devEnv"
}

} else {
$file = Get-Item $VsDevCmdPath
$commonToolsPath = $file.DirectoryName
$VsDevCmdBat = $file.Name
}

pushd $commonToolsPath

$output = cmd /c "$VsDevCmdBat & set"

popd

foreach ($line in $output)
{
if ($line -match "(?<key>.*?)=(?<value>.*)") {
$key = $matches["key"]
$value = $matches["value"]

Write-Verbose("$key=$value")
Set-Item "ENV:\$key" -Value "$value" -Force
}
}
24 changes: 14 additions & 10 deletions build/runtests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
Param(
[ValidateSet("Debug", "Release")]
[Parameter(Position=0, Mandatory=$True)]
[string]$Configuration
[string]$Configuration,

[ValidateSet(2015, 2017)]
[int]$VisualStudioVersion = 2017
)

$ErrorActionPreference = "Stop"
Expand All @@ -15,18 +18,19 @@ if (!(Test-Path $testFolder)) {
return -1
}

if ($env:VS140COMNTOOLS) {
$vstest = Resolve-Path ([IO.Path]::Combine($env:VS140COMNTOOLS, "..", "IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"))
} elseif ($env:VS120COMNTOOLS) {
$vstest = Resolve-Path ([IO.Path]::Combine($env:VS120COMNTOOLS, "..", "IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"))
} else {
Write-Error "Could not set vstest.console.exe because %VS140COMNTOOLS% or %VS120COMNTOOLS% are not set."
}
$VsTestConsoleCommand = $(Get-Command "vstest.console.exe" -CommandType Application -ErrorAction Ignore)

if (!(Test-Path $vstest)) {
Write-Error "$vstest does not exist"
# Possible that the VS Developer Command prompt is not yet set.
if ($VsTestConsoleCommand -eq $null) {
.\build\Set-VsDevEnv.ps1 -VisualstudioVersion $VisualStudioVersion
$VsTestConsoleCommand = $(Get-Command "vstest.console.exe" -CommandType Application -ErrorAction Ignore)

if ($VsTestConsoleCommand -eq $null) {
Write-Error "Could not set visual studio $VisualStudioVersion environment and locate vstest.console.exe!"
}
}

$vstest = $VsTestConsoleCommand.Path
$binaryFolders = Get-ChildItem $testFolder -Recurse | ? { $_.PsIsContainer -and $_.FullName.EndsWith($(Join-Path "bin" $Configuration)) }

$testDlls = New-Object System.Collections.ArrayList
Expand Down
6 changes: 3 additions & 3 deletions dir.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project>
<PropertyGroup>
<RepositoryRootDirectory>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))</RepositoryRootDirectory>
<SourceProjectsDirectory>$(RepositoryRootDirectory)src</SourceProjectsDirectory>
Expand All @@ -17,7 +17,7 @@
<!-- Trying to mitigate the number of warnings that the solution contains by
adding this into our Release builds. As a result, it should be caught in
our PRs because of the CI builds -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<!-- <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why comment this out?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was commented out because of the CS1701 warnings due to the different assembly versions it is resolving.

When building our project, we are encountering ~900 warnings like this:

warning CS1701: Assuming assembly reference 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'Microsoft.Fx.Portability' matches identity 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Runtime', you may need to supply runtime policy [D:\git\conniey\dotnet-apiport\src\ApiPort\ApiPort.csproj]

The reason for that is because Microsoft.Fx.Portability targets netstandard1.3 and ApiPort targets netcoreapp1.0. So at build time, Microsoft.Fx.Portability references System.Runtime 4.0.20.0... but ApiPort uses System.Runtime 4.1.0.0. This should not result in problems since we are only adding to the API surface area... but there is an issue about this aspnet/Mvc#5050 (comment). Should I make another in the right location?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is to suppress the CS1701 warning.... but I am afraid that it will result in suppressing any binding redirect errors that may happen.

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</PropertyGroup>-->
</Project>
Loading