Skip to content

Commit 275b666

Browse files
committed
Remove WindowsSdk Package version
1 parent 57674ce commit 275b666

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

WslToolbox.UI/WslToolbox.UI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<OutputType>WinExe</OutputType>
44
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
55
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
6-
<WindowsSdkPackageVersion>10.0.22621.38</WindowsSdkPackageVersion>
6+
<!-- <WindowsSdkPackageVersion>10.0.22621.38</WindowsSdkPackageVersion>-->
77
<RootNamespace>WslToolbox.UI</RootNamespace>
88
<ApplicationIcon>Assets/app.ico</ApplicationIcon>
99
<ApplicationManifest>app.manifest</ApplicationManifest>

clean.ps1

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
function DotNetClean() {
2+
try {
3+
$DotnetArgs = @()
4+
$DotnetArgs = $DotnetArgs + "clean"
5+
$DotnetArgs = $DotnetArgs + ".\WslToolbox.sln"
6+
& dotnet $DotnetArgs
7+
& nuget locals all -clear
8+
}
9+
catch {
10+
throw $_
11+
}
12+
13+
}
14+
15+
function DotNetBuild() {
16+
$DotnetArgs = @()
17+
$DotnetArgs = $DotnetArgs + "build"
18+
$DotnetArgs = $DotnetArgs + ".\WslToolbox.sln"
19+
$DotnetArgs = $DotnetArgs + "--configuration" + "Release"
20+
& dotnet $DotnetArgs
21+
}
22+
23+
function DotNetTools() {
24+
dotnet tool install --global dotnet-ef
25+
dotnet tool install --global wix
26+
dotnet tool update -g --no-cache --all
27+
dotnet workload update
28+
}
29+
30+
Get-ChildItem .\ -include bin, obj -Recurse | ForEach-Object ($_) {
31+
Write-Output "Removing $_...";
32+
remove-item $_.fullname -Force -Recurse
33+
}
34+
35+
try {
36+
DotNetClean
37+
DotNetTools
38+
}
39+
catch {
40+
throw $_
41+
}

0 commit comments

Comments
 (0)