-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable nerdbank #267
Enable nerdbank #267
Changes from all commits
d65f325
f251f4f
69a05bf
d6f4527
f517c0b
fc49696
f06d256
5c1cbe5
263d958
bcf4c8c
b60b1f6
1d54965
78dddea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,29 +65,6 @@ Import-Module -Force $PSScriptRoot\Projects.psm1 | |
$SolutionFile = "$SourceRoot\Sarif.Viewer.VisualStudio.sln" | ||
$BuildTarget = "Rebuild" | ||
|
||
function Update-VersionConstantsFiles { | ||
foreach ($project in $Projects.All) { | ||
& $PSScriptRoot\New-VersionConstantsFile.ps1 -OutputDirectory $SourceRoot\$project -Namespace "Microsoft.CodeAnalysis.$project" | ||
} | ||
} | ||
|
||
function Update-VsixManifest($project) { | ||
$versionPrefix, $versionSuffix = & "$PSScriptRoot\Get-VersionConstants.ps1" | ||
|
||
$vsixManifestPath = "$SourceRoot\$project\source.extension.vsixmanifest" | ||
$vsixManifest = [xml](Get-Content $vsixManifestPath) | ||
|
||
$vsixManifest.PackageManifest.Metadata.Identity.Version = $versionPrefix | ||
|
||
$vsixManifest.Save($vsixManifestPath) | ||
} | ||
|
||
function Update-VsixManifests { | ||
foreach ($project in $Projects.Vsix) { | ||
Update-VsixManifest $project | ||
} | ||
} | ||
|
||
function Invoke-Build { | ||
Write-Information "Building $SolutionFile..." | ||
msbuild /verbosity:minimal /target:$BuildTarget /property:Configuration=$Configuration /fileloggerparameters:Verbosity=detailed $SolutionFile | ||
|
@@ -167,8 +144,6 @@ if (-not $NoRestore) { | |
} | ||
|
||
if (-not $NoBuild) { | ||
Update-VersionConstantsFiles | ||
Update-VsixManifests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Remove the functions since they are no longer called. #Closed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reactivating. As of iteration 10, these functions are still defined. Everything from lines 68-90 can go away. In reply to: 521542752 [](ancestors = 521542752) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Invoke-Build | ||
} | ||
|
||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,15 +61,10 @@ function New-NuGetPackageFromNuspecFile($configuration, $project, $version, $fra | |
} | ||
|
||
function New-NuGetPackages($configuration, $projects, $frameworks) { | ||
$versionPrefix, $versionSuffix = & $PSScriptRoot\Get-VersionConstants.ps1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The file Get-VersionConstants.ps1 should no longer be needed and can be removed. (If it is still needed, then we missed something.) #Closed |
||
if ($versionSuffix) | ||
{ | ||
$version = "$versionPrefix-$versionSuffix" | ||
} else { | ||
$version = $versionPrefix | ||
} | ||
|
||
dotnet tool install --global nbgv --version 3.3.37 | ||
$version = nbgv get-version --project src --variable Version | ||
foreach ($project in $Projects.NuGet) { | ||
Write-Information $project | ||
foreach ($framework in $frameworks) { | ||
New-NuGetPackageFromNuSpecFile $configuration $project $version $framework | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,7 @@ | |
using System.Reflection; | ||
using System.Resources; | ||
|
||
using Microsoft.CodeAnalysis.Sarif.Sarifer; | ||
|
||
[assembly: AssemblyTitle("Sarifer test data producer extension for Visual Studio")] | ||
[assembly: AssemblyDescription("Generates test data in SARIF format and provides it to the SARIF viewer extension, upon which it depends.")] | ||
|
||
[assembly: NeutralResourcesLanguage("en")] | ||
|
||
[assembly: AssemblyVersion(VersionConstants.FileVersion)] | ||
[assembly: AssemblyFileVersion(VersionConstants.FileVersion)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Remove all the VersionConstants.cs files from the solution. #Closed |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<!-- Hack: https://github.com/dotnet/Nerdbank.GitVersioning/issues/404, since its a vsix with pages --> | ||
<Import Project="$(MSBuildProjectExtensionsPath)$(_TargetAssemblyProjectName)$(MSBuildProjectExtension).nuget.g.props" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hack: dotnet/Nerdbank.GitVersioning#404, since its a vsix with pages #Closed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Condition=" '$(_TargetAssemblyProjectName)' != '' and '$(ImportProjectExtensionProps)' != 'false' and exists('$(MSBuildProjectExtensionsPath)$(_TargetAssemblyProjectName)$(MSBuildProjectExtension).nuget.g.props')" /> | ||
<PropertyGroup> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
|
@@ -34,6 +37,11 @@ | |
<!-- Necessary to provide TaskStatusCenter and ITextViewCreationListener: --> | ||
<PackageReference Include="Microsoft.VisualStudio.Shell.15.0" Version="15.7.27703" /> | ||
<PackageReference Include="Microsoft.VisualStudio.Text.UI" Version="15.8.525" /> | ||
<PackageReference Include="Nerdbank.GitVersioning"> | ||
<Version>3.3.37</Version> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="Sarif.Sdk" Version="2.3.6" /> | ||
<PackageReference Include="Sarif.Converters" Version="2.3.6" /> | ||
<!-- Necessary to resolve version conflict on Newtonsoft.Json: --> | ||
|
@@ -48,7 +56,6 @@ | |
<Compile Include="Fixes\ProjectionBufferFactoryServiceExtensions.cs" /> | ||
<Compile Include="Fixes\ReplacementEdit.cs" /> | ||
<Compile Include="Fixes\SizeToFitHelper.cs" /> | ||
<Compile Include="Properties\VersionConstants.cs" /> | ||
<Compile Include="CodeAnalysisResultManager.cs" /> | ||
<Compile Include="CodeFlowToTreeConverter.cs" /> | ||
<Compile Include="CodeLocationObjectTypeDescriptor.cs" /> | ||
|
@@ -330,4 +337,7 @@ | |
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
<!-- Hack: https://github.com/dotnet/Nerdbank.GitVersioning/issues/404, since its a vsix with pages --> | ||
<Import Project="$(MSBuildProjectExtensionsPath)$(_TargetAssemblyProjectName)$(MSBuildProjectExtension).nuget.g.targets" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hack: dotnet/Nerdbank.GitVersioning#404, since its a vsix with pages #Closed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Condition=" '$(_TargetAssemblyProjectName)' != '' and '$(ImportProjectExtensionProps)' != 'false' and exists('$(MSBuildProjectExtensionsPath)$(_TargetAssemblyProjectName)$(MSBuildProjectExtension).nuget.g.targets')" /> | ||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! #Closed