以下は私の MSBuild XML です。BeforeBuild で生成されたファイルは DLL に含まれません。ファイルが含まれることを期待していました。CoreBuild が BeforeBuild で呼び出されたことに気付きました。生成されたファイルを含めて再構築するにはどうすればよいですか。
ありがとう
クリス
<?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>