35 lines
1.3 KiB
XML
35 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net5.0</TargetFramework>
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
<Version>1.0.0</Version>
|
|
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile>
|
|
<PackageName>$(MSBuildProjectName).$(Version).nupkg</PackageName>
|
|
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
|
<OutputPath>bin</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
<OutputPath>bin</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="EFCore.NamingConventions" Version="5.0.2" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.4" />
|
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.2" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Oqtane.Server\Oqtane.Server.csproj" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyPackage" AfterTargets="Pack">
|
|
<Copy SourceFiles="$(OutputPath)..\$(PackageName)" DestinationFiles="..\Oqtane.Server\wwwroot\Packages\$(PackageName).bak" />
|
|
</Target>
|
|
</Project>
|