File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments