-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
13 changed files
with
73 additions
and
18 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 |
---|---|---|
|
@@ -15,11 +15,12 @@ jobs: | |
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: ./WinUI3XamlPreview/scripts/ci | ||
- working-directory: WinUI3XamlPreview | ||
run: ./scripts/ci | ||
build: | ||
runs-on: windows-2022 | ||
needs: ["test"] | ||
if: startsWith(github.ref, 'refs/tags') | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
env: | ||
VERSION: 0.1.0 | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
|
@@ -29,3 +30,17 @@ jobs: | |
run: | | ||
./scripts/build -version $env:VERSION | ||
./scripts/publish-nuget -version $env:VERSION | ||
build-extension: | ||
runs-on: windows-2022 | ||
needs: ["test"] | ||
if: startsWith(github.ref, 'refs/tags/vs2022-v') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: microsoft/[email protected] | ||
- working-directory: extensions/WinUI3XamlPrevieVS2022 | ||
run: ./scripts/build-extension -config Release | ||
- uses: cezarypiatek/[email protected] | ||
with: | ||
extension-file: './extensions/WinUI3XamlPrevieVS2022/WinUI3XamlPrevieVS2022/bin/Release/net480/WinUI3XamlPrevieVS2022.vsix' | ||
publish-manifest-file: './extension/WinUI3XamlPrevieVS2022/vs-publish.json' | ||
personal-access-code: ${{ secrets.VS_MARKETPLACE_API_KEY }} |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
dotnet tool restore | ||
dotnet tool restore | out-host |
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,3 +1,5 @@ | ||
. "$PSScriptRoot\get-msbuild" | ||
&$msbuild $PSScriptRoot\..\TestPacakged\TestPackaged.csproj -t:Restore | ||
&$msbuild $PSScriptRoot\.. -t:TestPackaged -p:Platform=x64,Configuration=Debug | ||
&$msbuild $PSScriptRoot\..\TestDep\TestDep.vcxproj -t:Restore | out-host | ||
&$msbuild $PSScriptRoot\..\WinUI3XamlPreview\WinUI3XamlPreview.vcxproj -t:Restore | out-host | ||
&$msbuild $PSScriptRoot\..\TestPackaged\TestPackaged.vcxproj -t:Restore | out-host | ||
&$msbuild $PSScriptRoot\.. -t:TestPackaged -p:Platform=x64,Configuration=Debug | out-host |
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 @@ | ||
# Welcome to WinUI3 Xaml Preview Extension | ||
|
||
## Prerequisite | ||
- [WinUI3XamlPreview](https://www.nuget.org/packages/WinUI3XamlPreview/) nuget on nuget gallery. | ||
|
||
## Getting started | ||
|
||
Refer to the readme in https://github.com/roxk/WinUI3XamlPreview for more instructions. |
7 changes: 4 additions & 3 deletions
7
extensions/WinUI3XamlPreviewVS2022/WinUI3XamlPreviewVS2022/source.extension.vsixmanifest
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
14 changes: 14 additions & 0 deletions
14
extensions/WinUI3XamlPreviewVS2022/scripts/build-extension.ps1
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,14 @@ | ||
param( | ||
[boolean]$buildClang, | ||
[string]$config | ||
) | ||
|
||
if (!($config -eq "Release" -or $config -eq "Debug")) { | ||
echo "Uknown config: $config. -config [Release|Debug]" | ||
exit 1 | ||
} | ||
|
||
$srcDir = "$PSScriptRoot" | ||
$solutionDir = "$srcDir\.." | ||
msbuild "${solutionDir}WinUI3XamlPreviewVS2022\WinUI3XamlPreviewVS2022.csproj" -restore | ||
msbuild $solutionDir -t:WinUI3XamlPreviewVS2022 -p:Configuration=$config |
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,12 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/vsix-publish", | ||
"categories": [ "programming languages" ], | ||
"identity": { | ||
"internalName": "winui3xamlpreview", | ||
"tags": [ "WinUI3", "WinUI 3", "WinUI", "XAML", "Preview", "Live Preview" ] | ||
}, | ||
"assetFiles": [], | ||
"overview": "README.md", | ||
"publisher": "Roxk", | ||
"repo": "https://github.com/roxk/WinUI3XamlPreview" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.