11<Project Sdk =" Microsoft.NET.Sdk.BlazorWebAssembly" >
2-
3- <PropertyGroup >
4- <TargetFramework >net7.0</TargetFramework >
5- <Nullable >disable</Nullable >
6- <ImplicitUsings >enable</ImplicitUsings >
7- <NpmLastInstall >node_modules/.last-install</NpmLastInstall >
8- </PropertyGroup >
9-
10- <ItemGroup >
11- <PackageReference Include =" Flurl.Http" Version =" 3.2.4" />
12- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 7.0.5" />
13- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version =" 7.0.5" />
14- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 7.0.5" PrivateAssets =" all" />
15- <PackageReference Include =" PublishSPAforGitHubPages.Build" Version =" 2.0.2" />
16- <PackageReference Include =" SoloX.BlazorJsBlob" Version =" 1.0.2" />
17- </ItemGroup >
18-
19- <ItemGroup >
20- <ProjectReference Include =" ..\CodeMirror6\CodeMirror6.csproj" />
21- <ProjectReference Include =" ..\JsonToPowershellClass\JsonToPowershellClass.Core.csproj" />
22- </ItemGroup >
23-
24- <ItemGroup >
25- <Content Update =" wwwroot\img\powershell.json.logo-1024x1024.png" >
26- <ExcludeFromSingleFile >true</ExcludeFromSingleFile >
27- <CopyToPublishDirectory >PreserveNewest</CopyToPublishDirectory >
28- </Content >
29- </ItemGroup >
30-
31- <Target Name =" CheckForNpm" BeforeTargets =" NpmInstall" >
32- <Exec Command =" npm -v" ContinueOnError =" true" >
33- <Output TaskParameter =" ExitCode" PropertyName =" ErrorCode" />
34- </Exec >
35- <Error Condition =" '$(ErrorCode)' != '0'" Text =" You must install NPM to build this project" />
36- </Target >
37-
38- <Target Name =" NpmInstall" BeforeTargets =" BuildCSS" Inputs =" package.json" Outputs =" $(NpmLastInstall)" >
39- <Exec Command =" npm install" />
40- <Touch Files =" $(NpmLastInstall)" AlwaysCreate =" true" />
41- </Target >
42-
43- <Target Name =" BuildCSS" BeforeTargets =" Compile" >
44- <Exec Command =" npm run build" Condition =" '$(Configuration)' == 'Debug' " />
45- <Exec Command =" npm run release" Condition =" '$(Configuration)' == 'Release' " />
46- </Target >
47- </Project >
2+ <PropertyGroup >
3+ <TargetFramework >net8.0</TargetFramework >
4+ <Nullable >disable</Nullable >
5+ <ImplicitUsings >enable</ImplicitUsings >
6+ <NpmLastInstall >node_modules/.last-install</NpmLastInstall >
7+ </PropertyGroup >
8+ <ItemGroup >
9+ <PackageReference Include =" Flurl.Http" Version =" 4.0.0" />
10+ <PackageReference Include =" PublishSPAforGitHubPages.Build" Version =" 2.1.1" />
11+ <PackageReference Include =" SoloX.BlazorJsBlob" Version =" 1.0.2" />
12+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 8.0.0" />
13+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version =" 8.0.0" />
14+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 8.0.0" />
15+ </ItemGroup >
16+ <ItemGroup >
17+ <ProjectReference Include =" ..\CodeMirror6\CodeMirror6.csproj" />
18+ <ProjectReference Include =" ..\JsonToPowershellClass\JsonToPowershellClass.Core.csproj" />
19+ </ItemGroup >
20+ <ItemGroup >
21+ <Content Update =" wwwroot\img\powershell.json.logo-1024x1024.png" >
22+ <ExcludeFromSingleFile >true</ExcludeFromSingleFile >
23+ <CopyToPublishDirectory >PreserveNewest</CopyToPublishDirectory >
24+ </Content >
25+ </ItemGroup >
26+ <Target Name =" CheckForNpm" BeforeTargets =" NpmInstall" >
27+ <Exec Command =" npm -v" ContinueOnError =" true" >
28+ <Output TaskParameter =" ExitCode" PropertyName =" ErrorCode" />
29+ </Exec >
30+ <Error Condition =" '$(ErrorCode)' != '0'" Text =" You must install NPM to build this project" />
31+ </Target >
32+ <Target Name =" NpmInstall" BeforeTargets =" BuildCSS" Inputs =" package.json" Outputs =" $(NpmLastInstall)" >
33+ <Exec Command =" npm install" />
34+ <Touch Files =" $(NpmLastInstall)" AlwaysCreate =" true" />
35+ </Target >
36+ <Target Name =" BuildCSS" BeforeTargets =" Compile" >
37+ <Exec Command =" npm run build" Condition =" '$(Configuration)' == 'Debug' " />
38+ <Exec Command =" npm run release" Condition =" '$(Configuration)' == 'Release' " />
39+ </Target >
40+ </Project >
0 commit comments