2021-07-21 00:08:57 +00:00
<Project Sdk= "Microsoft.NET.Sdk.Web" >
2022-04-24 05:01:55 +00:00
<!-- https://docs.microsoft.com/en - us/dotnet/core/project - sdk/msbuild - props for more information. -->
2021-07-21 00:08:57 +00:00
<PropertyGroup >
2022-01-02 22:20:29 +00:00
<TargetFramework > net6.0</TargetFramework>
2021-07-21 00:08:57 +00:00
<UserSecretsId > aspnet-Props-20A2A991-EC61-4C06-91D2-953482026A7B</UserSecretsId>
</PropertyGroup>
<ItemGroup >
<None Update= "app.db" CopyToOutputDirectory= "PreserveNewest" ExcludeFromSingleFile= "true" />
</ItemGroup>
<ItemGroup >
2022-01-02 22:20:29 +00:00
<PackageReference Include= "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version= "6.0.1" />
<PackageReference Include= "Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version= "6.0.1" />
<PackageReference Include= "Microsoft.AspNetCore.Identity.UI" Version= "6.0.1" />
<PackageReference Include= "Microsoft.EntityFrameworkCore.Design" Version= "6.0.1" >
2021-07-21 00:08:57 +00:00
<IncludeAssets > runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets > all</PrivateAssets>
</PackageReference>
2022-01-02 22:20:29 +00:00
<PackageReference Include= "Microsoft.EntityFrameworkCore.Proxies" Version= "6.0.1" />
<PackageReference Include= "Microsoft.EntityFrameworkCore.Sqlite" Version= "6.0.1" />
<PackageReference Include= "Microsoft.EntityFrameworkCore.SqlServer" Version= "6.0.1" />
<PackageReference Include= "Microsoft.EntityFrameworkCore.Tools" Version= "6.0.1" >
2021-07-21 00:08:57 +00:00
<IncludeAssets > runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets > all</PrivateAssets>
</PackageReference>
2022-01-02 22:20:29 +00:00
<PackageReference Include= "Microsoft.VisualStudio.Web.CodeGeneration.Design" Version= "6.0.1" />
2021-07-21 00:08:57 +00:00
</ItemGroup>
<ItemGroup >
2022-04-24 05:18:05 +00:00
<ProjectReference Include= "..\Props.Shop\Framework\Props.Shop.Framework.csproj" />
2021-07-21 00:08:57 +00:00
</ItemGroup>
<ItemGroup >
2022-01-02 22:20:29 +00:00
<Watch Include= "assets\**\*.js;assets\**\*.scss" Exclude= "wwwroot\**\*;node_modules\**\*;**\*.js.map;obj\**\*;bin\**\*" />
2021-07-21 00:08:57 +00:00
</ItemGroup>
2022-04-24 05:28:46 +00:00
<Target Name= "DebugEnsureNodeEnv" BeforeTargets= "Build" Condition= " !Exists('node_modules') " >
2021-07-21 00:08:57 +00:00
<!-- Ensure Node.js is installed -->
<Exec Command= "node --version" ContinueOnError= "true" >
<Output TaskParameter= "ExitCode" PropertyName= "ErrorCode" />
</Exec>
<Error Condition= "'$(ErrorCode)' != '0'" Text= "Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
<Message Importance= "high" Text= "Restoring dependencies using 'npm'. This may take several minutes..." />
2022-04-24 05:01:55 +00:00
<Exec WorkingDirectory= "./" Command= "npm install" />
2021-07-21 00:08:57 +00:00
</Target>
<!-- Build static resources -->
<Target Name= "BuildWebpack" BeforeTargets= "Build" >
2021-07-23 01:25:41 +00:00
<Exec Command= "npm run build:dev" Condition= " '$(Configuration)' == 'Debug' " LogStandardErrorAsError= "true" />
<Exec Command= "npm run build:prod" Condition= " '$(Configuration)' == 'Release' " LogStandardErrorAsError= "true" />
2021-07-21 00:08:57 +00:00
</Target>
2022-04-24 05:01:55 +00:00
</Project>