Build Propeties

Restore the packages on build
This commit is contained in:
Leigh Pointer 2024-12-29 14:44:47 +01:00
parent decb4d2123
commit 350b9339c8
3 changed files with 11 additions and 5 deletions

5
Directory.Build.props Normal file
View File

@ -0,0 +1,5 @@
<Project>
<Target Name="Restore" BeforeTargets="Build">
<Exec Command="dotnet restore $(SolutionDir)Oqtane.sln" />
</Target>
</Project>

View File

@ -1,5 +1,6 @@
del "*.nupkg"
del "*.zip"
dotnet restore ..\Oqtane.sln
dotnet clean -c Release ..\Oqtane.sln
dotnet build -c Release ..\Oqtane.sln
nuget.exe pack Oqtane.Client.nuspec

View File

@ -34,15 +34,15 @@
<EmbeddedResource Include="Scripts\MigrateTenant.sql" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server"/>
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore"/>
<PackageReference Include="Microsoft.Data.SqlClient"/>
<PackageReference Include="Microsoft.EntityFrameworkCore"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
<PackageReference Include="Microsoft.Data.SqlClient" />
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Localization"/>
<PackageReference Include="Microsoft.Extensions.Localization" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" />
<PackageReference Include="Microsoft.Data.Sqlite.Core" />
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" />