forked from dotnet/blazor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2575939
commit f30ce5a
Showing
38 changed files
with
946 additions
and
234 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">$(MicrosoftNETCoreApp20PackageVersion)</RuntimeFrameworkVersion> | ||
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">$(MicrosoftNETCoreApp21PackageVersion)</RuntimeFrameworkVersion> | ||
</PropertyGroup> | ||
</Project> |
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,2 @@ | ||
@ECHO OFF | ||
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0run.ps1' default-build %*; exit $LASTEXITCODE" |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# Call "sync" between "chmod" and execution to prevent "text file busy" error in Docker (aufs) | ||
chmod +x "$DIR/run.sh"; sync | ||
"$DIR/run.sh" default-build "$@" |
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,120 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<BuildVSIX Condition="'$(BuildVSIX)' ==''">true</BuildVSIX> | ||
<RestoreDependsOn Condition="'$(OS)'=='Windows_NT' AND '$(BuildVSIX)' == 'true'">$(RestoreDependsOn);RestoreVSIX</RestoreDependsOn> | ||
<PackageDependsOn Condition="'$(OS)'=='Windows_NT' AND '$(BuildVSIX)' == 'true'">$(PackageDependsOn);PackageVSIX</PackageDependsOn> | ||
<GetArtifactInfoDependsOn Condition="'$(OS)'=='Windows_NT' AND '$(BuildVSIX)' == 'true'">$(GetArtifactInfoDependsOn);GetVSIXArtifactInfo</GetArtifactInfoDependsOn> | ||
<VSIXName>Microsoft.VisualStudio.BlazorExtension</VSIXName> | ||
<VSIXOutputPath>$(BuildDir)$(VSIXName).vsix</VSIXOutputPath> | ||
<VSIXManifestOutputPath>$(BuildDir)$(VSIXName).json</VSIXManifestOutputPath> | ||
<VSIXProject>$(RepositoryRoot)tooling\$(VSIXName)\$(VSIXName).csproj</VSIXProject> | ||
<VSIXSymbolsOutputPath>$(BuildDir)$(VSIXName).pdb</VSIXSymbolsOutputPath> | ||
<VSIXArtifactCategory>shipoob</VSIXArtifactCategory> | ||
</PropertyGroup> | ||
|
||
<Target | ||
Name="GenerateVSIX" | ||
DependsOnTargets="RestoreVSIX;PackageVSIX" | ||
Condition="'$(OS)'=='Windows_NT'" /> | ||
|
||
<!-- This target is required so KoreBuild can generate a bill of materials with relevant information about the VSIX. --> | ||
<Target Name="GetVSIXArtifactInfo"> | ||
<ItemGroup> | ||
|
||
<ArtifactInfo Include="$(VSIXOutputPath)"> | ||
<ArtifactType>VsixPackage</ArtifactType> | ||
<Version>$(PackageVersion)</Version> | ||
<Category>$(VSIXArtifactCategory)</Category> | ||
<PackageId>$(VSIXName)</PackageId> | ||
</ArtifactInfo> | ||
|
||
<ArtifactInfo Include="$(VSIXSymbolsOutputPath)"> | ||
<ArtifactType>SymbolsFile</ArtifactType> | ||
<Category>$(VSIXArtifactCategory)</Category> | ||
<Dependencies>$(VSIXName).vsix</Dependencies> | ||
<DebugType>full</DebugType> | ||
</ArtifactInfo> | ||
|
||
<ArtifactInfo Include="$(VSIXManifestOutputPath)" Condition="'$(IsProductComponent)'=='true'"> | ||
<ArtifactType>VsixPackageManifestFile</ArtifactType> | ||
<Category>$(VSIXArtifactCategory)</Category> | ||
<Dependencies>$(VSIXName).vsix</Dependencies> | ||
<PackageId>$(VSIXName)</PackageId> | ||
</ArtifactInfo> | ||
|
||
<FilesToSign Include="$(VSIXOutputPath)" Certificate="Vsix" /> | ||
<FilesToExcludeFromSigning Include="$(VSIXManifestOutputPath)" /> | ||
<FilesToExcludeFromSigning Include="$(VSIXSymbolsOutputPath)" /> | ||
|
||
</ItemGroup> | ||
</Target> | ||
|
||
<!-- | ||
VisualStudioMSBuildx86Path is set by the GetToolsets target in KoreBuild if a version of VS matching the requirements in korebuild.json is found. | ||
--> | ||
<Target Name="RestoreVSIX" DependsOnTargets="GetToolsets"> | ||
|
||
<PropertyGroup> | ||
<VSIXResponseFilePath>$(LogOutputDir)vsix-restore.rsp</VSIXResponseFilePath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<MSBuildArguments Remove="@(MSBuildArguments)" /> | ||
<MSBuildArguments Include=" | ||
$(VSIXProject); | ||
/t:Restore; | ||
/m; | ||
/v:m; | ||
/p:Configuration=$(Configuration); | ||
/p:BuildNumber=$(BuildNumber);" /> | ||
<MSBuildArguments Include="/p:DotNetPackageVersionPropsPath=$(DotNetPackageVersionPropsPath)" Condition="'$(DotNetPackageVersionPropsPath)' != ''" /> | ||
<MSBuildArguments Include="/p:DotNetRestoreSourcePropsPath=$(DotNetRestoreSourcePropsPath)" Condition="'$(DotNetRestoreSourcePropsPath)' != ''" /> | ||
</ItemGroup> | ||
|
||
<MakeDir Directories="$(LogOutputDir)" /> | ||
|
||
<WriteLinesToFile | ||
File="$(VSIXResponseFilePath)" | ||
Lines="@(MSBuildArguments)" | ||
Overwrite="true" /> | ||
|
||
<Exec Command=""$(VisualStudioMSBuildx86Path)" @"$(VSIXResponseFilePath)"" | ||
Condition="'$(VisualStudioMSBuildx86Path)' != ''" /> | ||
</Target> | ||
|
||
<Target Name="PackageVSIX" DependsOnTargets="GetToolsets"> | ||
|
||
<Warning Text="Could not find a version of Visual Studio that has the Visual Studio SDK installed. This is required to build the Razor VSIX. Skipping." | ||
Condition="'$(VisualStudioMSBuildx86Path)' == ''" /> | ||
|
||
<PropertyGroup> | ||
<VSIXLogFilePath>$(LogOutputDir)vsix.log</VSIXLogFilePath> | ||
<VSIXResponseFilePath>$(LogOutputDir)vsix-build.rsp</VSIXResponseFilePath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<MSBuildArguments Remove="@(MSBuildArguments)" /> | ||
<MSBuildArguments Include=" | ||
$(VSIXProject); | ||
/m; | ||
/v:M; | ||
/fl; | ||
/flp:LogFile=$(VSIXLogFilePath); | ||
/p:DeployExtension=false; | ||
/p:TargetVSIXContainer=$(VSIXOutputPath); | ||
/p:SymbolsPublishDir=$(BuildDir); | ||
/p:Configuration=$(Configuration);" /> | ||
</ItemGroup> | ||
|
||
<MakeDir Directories="$(LogOutputDir)" /> | ||
|
||
<WriteLinesToFile | ||
File="$(VSIXResponseFilePath)" | ||
Lines="@(MSBuildArguments)" | ||
Overwrite="true" /> | ||
|
||
<Exec Command=""$(VisualStudioMSBuildx86Path)" @"$(VSIXResponseFilePath)"" | ||
Condition="'$(VisualStudioMSBuildx86Path)' != ''" /> | ||
</Target> | ||
|
||
</Project> |
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 |
---|---|---|
@@ -1,6 +1 @@ | ||
Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1' -OutFile .\build\dotnet-install.ps1 | ||
.\build\dotnet-install.ps1 -channel Current -version 2.1.3 -InstallDir dotnetsdk | ||
dotnet --version | ||
dotnet pack Blazor.sln --configuration Release | ||
cmd /c "C:\Program Files (x86)\Microsoft Visual Studio\aspnetci\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" BlazorTooling.sln /t:Restore | ||
cmd /c "C:\Program Files (x86)\Microsoft Visual Studio\aspnetci\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" BlazorTooling.sln /p:DeployExtension=false /p:TargetVSIXContainer=..\..\artifacts\build\Microsoft.VisualStudio.BlazorExtension.vsix | ||
build.cmd |
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,10 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Package Versions"> | ||
<InternalAspNetCoreSdkPackageVersion>2.1.0-preview2-15704</InternalAspNetCoreSdkPackageVersion> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " /> | ||
</Project> |
Oops, something went wrong.