Skip to content
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

Web models 1 #32

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Binary file added .ionide/symbolCache.db
Binary file not shown.
34 changes: 34 additions & 0 deletions azure-pipelines-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- main

pool:
vmImage: 'windows-latest'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
44 changes: 44 additions & 0 deletions azure-pipelines-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pool:
vmImage: 'ubuntu-20.04'

variables:
buildConfiguration: 'Release'
dotnetSdkVersion: '5.x'

steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK $(dotnetSdkVersion)'
inputs:
version: '$(dotnetSdkVersion)'

- task: DotNetCoreCLI@2
displayName: 'Restore project dependencies'
inputs:
command: 'restore'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
displayName: 'Build the project - $(buildConfiguration)'
inputs:
command: 'build'
arguments: '--no-restore --configuration $(buildConfiguration)'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
displayName: 'Pack the project - $(buildConfiguration)'
inputs:
command: 'pack'
projects: '**/*.csproj'
arguments: '--no-build --configuration $(buildConfiguration)'
versioningScheme: byPrereleaseNumber
majorVersion: '1'
minorVersion: '0'
patchVersion: '0'

- task: NuGetCommand@2
displayName: 'Publish NuGet package'
inputs:
command: push
feedPublish: '$(System.TeamProject)/Tailspin.SpaceGame.Web.Models'
allowPackageConflicts: true
condition: succeeded()
44 changes: 44 additions & 0 deletions azure-pipelines-3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pool:
vmImage: 'ubuntu-20.04'

variables:
buildConfiguration: 'Release'
dotnetSdkVersion: '5.x'

steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK $(dotnetSdkVersion)'
inputs:
version: '$(dotnetSdkVersion)'

- task: DotNetCoreCLI@2
displayName: 'Restore project dependencies'
inputs:
command: 'restore'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
displayName: 'Build the project - $(buildConfiguration)'
inputs:
command: 'build'
arguments: '--no-restore --configuration $(buildConfiguration)'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
displayName: 'Pack the project - $(buildConfiguration)'
inputs:
command: 'pack'
projects: '**/*.csproj'
arguments: '--no-build --configuration $(buildConfiguration)'
versioningScheme: byPrereleaseNumber
majorVersion: '1'
minorVersion: '0'
patchVersion: '0'

- task: NuGetCommand@2
displayName: 'Publish NuGet package'
inputs:
command: push
publishVstsFeed: 'Space Game - web - Dependencies/Tailspin.SpaceGame.Web.Models2'
allowPackageConflicts: true
condition: succeeded()
34 changes: 34 additions & 0 deletions azure-pipelines-4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- main

pool:
vmImage: 'windows-latest'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ steps:
displayName: 'Publish NuGet package'
inputs:
command: push
feedPublish: '$(System.TeamProject)/Tailspin.SpaceGame.Web.Models'
publishVstsFeed: 'Space Game-web-Dependencies/Tailspin.SpaceGame.Web.Models'
allowPackageConflicts: true
condition: succeeded()
condition: succeeded()