以下是我的 MSBuild XML。BeforeBuild 中生成的文件不包含在 DLL 中。我期待该文件包含在内。我确实注意到在 BeforeBuild 中调用了 CoreBuild。如何再次进行重建,包括生成的文件。
谢谢
克里斯
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
...
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
...
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
...
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include=".\Resources\Assembly\*.dll" Condition="Exists('.\Resources\Assembly')" />
...
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include=".\**\*.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<UsingTask TaskName="EdmTasks.ViewRefreshTask" AssemblyFile=".\Resources\Assembly\EdmTasks.dll" />
<Target Name="BeforeBuild">
<MsBuild Projects="ForwardPAS.csproj" Targets="CoreBuild" />
<ViewRefreshTask Assembly="$(TargetPath)" Lang="cs" DbContext="FranklinIndexedAnnuityDb" />
</Target>
</Project>