DotNetCorePlugins/samples/aspnetcore/MainWebApp/MainWebApp.csproj

31 lines
874 B
XML

<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Abstractions\Abstractions.csproj" />
<!--
Required for the samples in this repo only.
Normally, you should replace this with a PackageReference to McMaster.NETCore.Plugins.
-->
<ProjectReference Include="$(RepoRoot)src\Plugins\McMaster.NETCore.Plugins.csproj" />
</ItemGroup>
<Target Name="PublishPlugins"
BeforeTargets="Build">
<ItemGroup>
<PluginProject Include="..\WebAppPlugin1\WebAppPlugin1.csproj" />
<PluginProject Include="..\WebAppPlugin2\WebAppPlugin2.csproj" />
</ItemGroup>
<MSBuild Projects="@(PluginProject)"
Targets="Publish"
Properties="PublishDir=$(TargetDir)plugins\%(FileName)\" />
</Target>
</Project>