Skip to content

Commit

Permalink
Initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Nov 17, 2019
0 parents commit 0fac940
Show file tree
Hide file tree
Showing 158 changed files with 35,026 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.vs/
bin/
obj/
*.user
Debug/
packages/
artifacts/
25 changes: 25 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/**"
],
"defines": [
"OS_MAC"
],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64",
"compilerArgs": [
"-shared -lstdc++ -DOS_MAC Exports.cpp WebWindow.Mac.cpp"
]
}
],
"version": 4
}
10 changes: 10 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<SamplesWebWindowPackageVersion>0.1.0-20191115.8</SamplesWebWindowPackageVersion>
<BlazorPackageVersion>3.0.0-preview9.19465.2</BlazorPackageVersion>
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
<VersionPrefix>0.1.0</VersionPrefix>
<VersionSuffix>dev</VersionSuffix>
</PropertyGroup>
</Project>
117 changes: 117 additions & 0 deletions WebWindow.Dev.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29319.158
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testassets", "testassets", "{48F15A61-E458-4F4B-A64E-6F0B5F38DB2F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorldApp", "testassets\HelloWorldApp\HelloWorldApp.csproj", "{9FB96A16-5712-4425-87A8-3C08DAFB77ED}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6A79DAD3-9AEF-47C3-9BF4-BF27365F3BF0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebWindow", "src\WebWindow\WebWindow.csproj", "{61434CA9-A095-4F9D-89CD-246F4A6A72D2}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WebWindow.Native", "src\WebWindow.Native\WebWindow.Native.vcxproj", "{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebWindow.Blazor", "src\WebWindow.Blazor\WebWindow.Blazor.csproj", "{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebWindow.Blazor.JS", "src\WebWindow.Blazor.JS\WebWindow.Blazor.JS.csproj", "{7B27AF53-071D-4E85-9D1B-8379E1FAC756}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBlazorApp", "testassets\MyBlazorApp\MyBlazorApp.csproj", "{137004F2-5986-4593-BD5E-A8980A6B6A0B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Debug|x64.ActiveCfg = Debug|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Debug|x64.Build.0 = Debug|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Debug|x86.ActiveCfg = Debug|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Debug|x86.Build.0 = Debug|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Release|Any CPU.Build.0 = Release|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Release|x64.ActiveCfg = Release|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Release|x64.Build.0 = Release|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Release|x86.ActiveCfg = Release|Any CPU
{9FB96A16-5712-4425-87A8-3C08DAFB77ED}.Release|x86.Build.0 = Release|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Debug|x64.ActiveCfg = Debug|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Debug|x64.Build.0 = Debug|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Debug|x86.ActiveCfg = Debug|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Debug|x86.Build.0 = Debug|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Release|Any CPU.Build.0 = Release|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Release|x64.ActiveCfg = Release|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Release|x64.Build.0 = Release|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Release|x86.ActiveCfg = Release|Any CPU
{61434CA9-A095-4F9D-89CD-246F4A6A72D2}.Release|x86.Build.0 = Release|Any CPU
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|Any CPU.ActiveCfg = Debug|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x64.ActiveCfg = Debug|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x64.Build.0 = Debug|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x86.ActiveCfg = Debug|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x86.Build.0 = Debug|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|Any CPU.ActiveCfg = Release|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x64.ActiveCfg = Release|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x64.Build.0 = Release|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x86.ActiveCfg = Release|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x86.Build.0 = Release|Win32
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Debug|x64.ActiveCfg = Debug|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Debug|x64.Build.0 = Debug|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Debug|x86.ActiveCfg = Debug|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Debug|x86.Build.0 = Debug|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Release|Any CPU.Build.0 = Release|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Release|x64.ActiveCfg = Release|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Release|x64.Build.0 = Release|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Release|x86.ActiveCfg = Release|Any CPU
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB}.Release|x86.Build.0 = Release|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Debug|x64.ActiveCfg = Debug|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Debug|x64.Build.0 = Debug|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Debug|x86.ActiveCfg = Debug|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Debug|x86.Build.0 = Debug|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Release|Any CPU.Build.0 = Release|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Release|x64.ActiveCfg = Release|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Release|x64.Build.0 = Release|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Release|x86.ActiveCfg = Release|Any CPU
{7B27AF53-071D-4E85-9D1B-8379E1FAC756}.Release|x86.Build.0 = Release|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Debug|x64.ActiveCfg = Debug|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Debug|x64.Build.0 = Debug|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Debug|x86.ActiveCfg = Debug|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Debug|x86.Build.0 = Debug|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Release|Any CPU.Build.0 = Release|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Release|x64.ActiveCfg = Release|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Release|x64.Build.0 = Release|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Release|x86.ActiveCfg = Release|Any CPU
{137004F2-5986-4593-BD5E-A8980A6B6A0B}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9FB96A16-5712-4425-87A8-3C08DAFB77ED} = {48F15A61-E458-4F4B-A64E-6F0B5F38DB2F}
{61434CA9-A095-4F9D-89CD-246F4A6A72D2} = {6A79DAD3-9AEF-47C3-9BF4-BF27365F3BF0}
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC} = {6A79DAD3-9AEF-47C3-9BF4-BF27365F3BF0}
{56FE2489-3A7C-4C98-AF32-B1F84A6E1EFB} = {6A79DAD3-9AEF-47C3-9BF4-BF27365F3BF0}
{7B27AF53-071D-4E85-9D1B-8379E1FAC756} = {6A79DAD3-9AEF-47C3-9BF4-BF27365F3BF0}
{137004F2-5986-4593-BD5E-A8980A6B6A0B} = {48F15A61-E458-4F4B-A64E-6F0B5F38DB2F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {27582E6D-A662-4DF3-834C-74D0A94025A1}
EndGlobalSection
EndGlobal
35 changes: 35 additions & 0 deletions WebWindow.Native.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29319.158
MinimumVisualStudioVersion = 15.0.26124.0
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WebWindow.Native", "src\WebWindow.Native\WebWindow.Native.vcxproj", "{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|Any CPU.ActiveCfg = Debug|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x64.ActiveCfg = Debug|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x64.Build.0 = Debug|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x86.ActiveCfg = Debug|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Debug|x86.Build.0 = Debug|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|Any CPU.ActiveCfg = Release|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x64.ActiveCfg = Release|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x64.Build.0 = Release|x64
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x86.ActiveCfg = Release|Win32
{B326B50A-F623-40F1-92F7-1EC6A5A48DAC}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C46DB0A4-91F9-4A64-B9AE-E217EEDF82ED}
EndGlobalSection
EndGlobal
65 changes: 65 additions & 0 deletions WebWindow.Samples.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29319.158
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorldApp", "samples\HelloWorldApp\HelloWorldApp.csproj", "{CFC44203-0D5E-4D59-A614-6AAD28D7B780}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorDesktopApp", "samples\BlazorDesktopApp\BlazorDesktopApp.csproj", "{FDF64575-084D-4D53-BB47-39B37397E634}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VueFileExplorer", "samples\VueFileExplorer\VueFileExplorer.csproj", "{C73415D2-A246-49C0-98F8-E87E1462E93E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Debug|x64.ActiveCfg = Debug|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Debug|x64.Build.0 = Debug|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Debug|x86.ActiveCfg = Debug|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Debug|x86.Build.0 = Debug|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Release|Any CPU.Build.0 = Release|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Release|x64.ActiveCfg = Release|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Release|x64.Build.0 = Release|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Release|x86.ActiveCfg = Release|Any CPU
{CFC44203-0D5E-4D59-A614-6AAD28D7B780}.Release|x86.Build.0 = Release|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Debug|x64.ActiveCfg = Debug|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Debug|x64.Build.0 = Debug|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Debug|x86.ActiveCfg = Debug|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Debug|x86.Build.0 = Debug|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Release|Any CPU.Build.0 = Release|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Release|x64.ActiveCfg = Release|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Release|x64.Build.0 = Release|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Release|x86.ActiveCfg = Release|Any CPU
{FDF64575-084D-4D53-BB47-39B37397E634}.Release|x86.Build.0 = Release|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Debug|x64.ActiveCfg = Debug|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Debug|x64.Build.0 = Debug|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Debug|x86.ActiveCfg = Debug|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Debug|x86.Build.0 = Debug|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Release|Any CPU.Build.0 = Release|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Release|x64.ActiveCfg = Release|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Release|x64.Build.0 = Release|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Release|x86.ActiveCfg = Release|Any CPU
{C73415D2-A246-49C0-98F8-E87E1462E93E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {688C3F20-8845-4828-AD29-993FD448DFB3}
EndGlobalSection
EndGlobal
112 changes: 112 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- master

variables:
versionprefix: 0.1.0

jobs:
- job: 'BuildPackage'
strategy:
matrix:
linux:
imageName: 'ubuntu-18.04'
rid: 'linux-x64'
mac:
imageName: 'macos-10.14'
rid: 'osx-x64'
windows:
rid: 'windows-x64'
imageName: 'windows-2019'

pool:
vmImage: $(imageName)

variables:
buildConfiguration: 'Release'

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.0.100
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: CmdLine@2
displayName: 'Install linux dependencies'
condition: eq(variables.rid, 'linux-x64')
inputs:
script: 'sudo apt-get update && sudo apt-get install libgtk-3-dev libwebkit2gtk-4.0-dev'
- task: NuGetCommand@2
displayName: 'NuGet package restore for Windows native packages'
condition: eq(variables.rid, 'windows-x64')
inputs:
command: 'restore'
restoreSolution: 'WebWindow.Native.sln'
feedsToUse: 'select'
- task: VSBuild@1
displayName: 'Build Windows native assets'
condition: eq(variables.rid, 'windows-x64')
inputs:
solution: 'WebWindow.Native.sln'
platform: 'x64'
configuration: 'Debug'
- task: CmdLine@2
displayName: 'Build Linux/macOS native assets'
condition: ne(variables.rid, 'windows-x64')
inputs:
script: 'dotnet build src/WebWindow/WebWindow.csproj /t:BuildNonWindowsNative'
- task: CmdLine@2
condition: eq(variables.rid, 'windows-x64')
displayName: 'Build .js artifact for WebWindow.Blazor.JS'
inputs:
script: 'dotnet build src/WebWindow.Blazor.JS'
- task: CmdLine@2
displayName: 'dotnet pack WebWindow'
inputs:
script: 'dotnet pack -c $(buildConfiguration) src/WebWindow/WebWindow.csproj /p:VersionPrefix=$(versionprefix) /p:VersionSuffix=$(Build.BuildNumber)'
- task: CmdLine@2
condition: eq(variables.rid, 'windows-x64')
displayName: 'dotnet pack WebWindow.Blazor'
inputs:
script: 'dotnet pack -c $(buildConfiguration) src/WebWindow.Blazor/WebWindow.Blazor.csproj /p:VersionPrefix=$(versionprefix) /p:VersionSuffix=$(Build.BuildNumber)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'artifacts'
ArtifactName: 'artifacts-$(rid)'
publishLocation: 'Container'
- job: 'CombinePackages'
dependsOn: 'BuildPackage'
steps:
- task: DownloadBuildArtifacts@0
inputs:
downloadPath: 'artifacts'
artifactName: 'artifacts-windows-x64'
- task: DownloadBuildArtifacts@0
inputs:
downloadPath: 'artifacts'
artifactName: 'artifacts-linux-x64'
- task: DownloadBuildArtifacts@0
inputs:
downloadPath: 'artifacts'
artifactName: 'artifacts-osx-x64'
- task: CmdLine@2
inputs:
script: 'ls -R artifacts'
- task: CmdLine@2
displayName: 'Merge .nupkg files'
inputs:
script: 'sudo apt install zipmerge && mkdir combined && zipmerge combined/WebWindow.$(versionprefix)-$(Build.BuildNumber).nupkg artifacts/*/WebWindow.$(versionprefix)-$(Build.BuildNumber).nupkg'
- task: CmdLine@2
displayName: 'Copy WebWindow.Blazor nupkg to output'
inputs:
script: 'cp artifacts/artifacts-windows-x64/WebWindow.Blazor.*.nupkg combined/'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'combined'
ArtifactName: 'artifacts-combined'
publishLocation: 'Container'
10 changes: 10 additions & 0 deletions samples/BlazorDesktopApp/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
Loading

0 comments on commit 0fac940

Please sign in to comment.