chore: initialize PCL-ISE 0.1.0
Build / Build (Debug) (push) Waiting to run
Build / Build (Release) (push) Waiting to run

This commit is contained in:
Coldsmile_7
2026-10-21 11:49:36 +08:00
parent 6b9a50df91
commit 216b91f784
7 changed files with 105 additions and 13 deletions
+34
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-dotnettools.csharp",
"ms-dotnettools.csdevkit"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"dotnet.defaultSolution": "Plain Craft Launcher 2.sln"
}
+39
View File
@@ -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"
}
]
}