This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Microsoft.Fx.Portability: Migrate to VS2017 project * Fix duplicate import warnings because of dir.props and dir.targets * Update solution to VS2017 * Add .vscode to .gitignore * Microsoft.Fx.Portability.MetadataReader: Migrate to VS2017 .NET Core project * Microsoft.Fx.Portability.Reports.Json: Migrate to VS2017 .NET Core project * Microsoft.Fx.Portability.Offline: Migrate to VS2017 .NET Core project * ApiPort: Migrate to VS2017 and combine .NET Core * ApiPort: Remove manual app.config bindingRedirects and autogenerate them * Remove ApiPort.Core from solution * ApiPort.Vsix: Update project to VS2017 * ApiPort.VisualStudio: Update to VS2017 * Microsoft.Fx.Portability.CCI: Migrate to VS2017 .NET Standard project * SearchFxApi: Migrate to VS2017 * Microsoft.Fx.Portability.Reports.Html: Update to VS2017 * Microsoft.Fx.Portability.Cci.Tests: Upgrade to VS2017 * Add target that removes EmbeddedResources from being compiled * Microsoft.Fx.Portability.MetadataReader.Tests: Migrate to VS2017 * Microsoft.Fx.Portability.Offline.Tests: Migrate to VS2017 * Microsoft.Fx.Portability.MetadataReader.Tests: Remove manual bindingRedirects in app.config * Microsoft.Fx.Portability.CCI.Tests: Remove manual bindingRedirects in App.config * Initial migration of ApiPort.VisualStudio and ApiPort.Vsix * Microsoft.Fx.Portability.Tests: Migrate to VS2017 * CCI.Tests and MetdataReader.Tests: Add autogeneration of bindingRedirects * ApiPort: Update Microsoft package versions * Microsoft.Fx.Portability.Reports.Html: Update NuGet packages * Microsoft.Fx.Portability.MetadataReader.Tests: Update NuGet packages * Microsoft.Fx.Portability: Update NuGet packages * Microsoft.Fx.Portability.Cci.Tests: Update NuGet packages * ApiPortVS.Tests: Remove manual bindingRedirects * Update System.Reflection.Metadata to 1.4.2 * Fix tests for VS2017 * Microsoft.Fx.Portability.MetadataReader.Tests: Uncomment test after updating S.R.Metadata * ApiPort.VisualStudio: Fix build errors from upgrade * ApiPortVS.Tests: Update NuGet packages * ApiPort: Remove explicit inclusion of app.config * ApiPort.Vsix: Revert project.json to packages.config due to NuGet/issue#4532 * ApiPort.VisualStudio: Revert project.json to packages.config due to NuGet/issue#4532 * ApiPort.Vsix: Add app.config * ApiPortVS.Tests: Revert project.json to packages.config * Disable <WarningsAsErrors> because of CS1701 runtime policy warnings. * ApiPort: Update Autofac. * Microsoft.Fx.Portability.Cci: Add compiler directive for NETSTANDARD1_6 * Update Get-BuildTools to NuGet v4.0.0 * ApiPort: Fix System.Diagnostics.DiagnosticSource not found runtime errors. * Add Microsoft.TestHost to all projects so they run * Replace References with NuGet packages so people without VSIX Support installed can build still * Adding Set-VsDevEnv.ps1 cmdlet * Build Scripts: Update to find installed Visual studio 2017 * ApiPort.VisualStudio: Fix Release build * ApiPort.Vsix: Deploying extension during debug * ApiPort.VisualStudio: Update project so it outputs a vsix that can be propagated to other projects. * ApiPort.Vsix: Updated installation targets. Added import of VisualStudio SDK targets. Removed TreatWarningsAsErrors * Microsoft.Fx.Portability.Offline: Consolidate Autofac versions * Update compiler directives to FEATURE_[NAME]
- Loading branch information
Showing
67 changed files
with
1,028 additions
and
1,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,5 @@ src/Microsoft.Fx.Portability.Offline/data/ | |
.tools/ | ||
.data | ||
*.nuget.props | ||
*.nuget.targets | ||
*.nuget.targets | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.