chore: initialize PCL-ISE 0.1.0
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[ValidateSet('Debug', 'Release', 'Snapshot')]
|
||||
[string]$Configuration = 'Debug'
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$solution = Join-Path $PSScriptRoot '..\Plain Craft Launcher 2.sln'
|
||||
$solution = [IO.Path]::GetFullPath($solution)
|
||||
|
||||
$msbuild = (Get-Command msbuild.exe -ErrorAction SilentlyContinue).Source
|
||||
if (-not $msbuild) {
|
||||
$vswhere = @(
|
||||
(Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'),
|
||||
(Join-Path $env:ProgramFiles 'Microsoft Visual Studio\Installer\vswhere.exe')
|
||||
) | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||
|
||||
if ($vswhere) {
|
||||
$installationPath = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
|
||||
if ($installationPath) {
|
||||
$candidate = Join-Path $installationPath 'MSBuild\Current\Bin\MSBuild.exe'
|
||||
if (Test-Path $candidate) { $msbuild = $candidate }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $msbuild) {
|
||||
throw 'MSBuild was not found. Install Visual Studio Build Tools with the .NET desktop build tools and .NET Framework 4.8 targeting pack.'
|
||||
}
|
||||
|
||||
Write-Host "MSBuild: $msbuild"
|
||||
Write-Host "Configuration: $Configuration"
|
||||
& $msbuild $solution /t:Build "/p:Configuration=$Configuration" "/p:Platform=Any CPU" /m /v:minimal
|
||||
exit $LASTEXITCODE
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"ms-dotnettools.csharp",
|
||||
"ms-dotnettools.csdevkit"
|
||||
]
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"dotnet.defaultSolution": "Plain Craft Launcher 2.sln"
|
||||
}
|
||||
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build PCL-ISE (Debug)",
|
||||
"type": "shell",
|
||||
"command": "powershell.exe",
|
||||
"args": [
|
||||
"-NoProfile",
|
||||
"-ExecutionPolicy",
|
||||
"Bypass",
|
||||
"-File",
|
||||
"${workspaceFolder}\\.vscode\\build.ps1",
|
||||
"-Configuration",
|
||||
"Debug"
|
||||
],
|
||||
"problemMatcher": "$msCompile",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build PCL-ISE (Release)",
|
||||
"type": "shell",
|
||||
"command": "powershell.exe",
|
||||
"args": [
|
||||
"-NoProfile",
|
||||
"-ExecutionPolicy",
|
||||
"Bypass",
|
||||
"-File",
|
||||
"${workspaceFolder}\\.vscode\\build.ps1",
|
||||
"-Configuration",
|
||||
"Release"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user