| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-
- <PropertyGroup>
- <ProjectWeaverXml>$(ProjectDir)FodyWeavers.xml</ProjectWeaverXml>
- <FodyPath Condition="$(FodyPath) == '' Or $(FodyPath) == '*Undefined*'">$(MSBuildThisFileDirectory)..\</FodyPath>
- <FodyAssemblyDirectory Condition="'$(MSBuildRuntimeType)' == 'Core'">$(FodyPath)netstandardtask</FodyAssemblyDirectory>
- <FodyAssemblyDirectory Condition="'$(MSBuildRuntimeType)' != 'Core'">$(FodyPath)netclassictask</FodyAssemblyDirectory>
- <FodyAssembly Condition="'$(FodyAssembly)' == ''">$(FodyAssemblyDirectory)\Fody.dll</FodyAssembly>
- <DefaultItemExcludes>$(DefaultItemExcludes);FodyWeavers.xsd</DefaultItemExcludes>
- <FodyGenerateXsd Condition="'$(FodyGenerateXsd)' == ''">true</FodyGenerateXsd>
- </PropertyGroup>
-
- <ItemGroup Condition="Exists('$(ProjectWeaverXml)')">
- <UpToDateCheckInput Include="$(ProjectWeaverXml)" />
- <CustomAdditionalCompileInputs Include="$(ProjectWeaverXml)" />
- </ItemGroup>
-
- <!-- Support for NCrunch -->
- <ItemGroup Condition="'$(NCrunch)' == '1'">
- <None Include="$(FodyAssemblyDirectory)\*.*" />
- <None Include="@(WeaverFiles)" />
- </ItemGroup>
-
- <UsingTask TaskName="Fody.WeavingTask" AssemblyFile="$(FodyAssembly)" />
- <UsingTask TaskName="Fody.UpdateReferenceCopyLocalTask" AssemblyFile="$(FodyAssembly)" />
- <UsingTask TaskName="Fody.VerifyTask" AssemblyFile="$(FodyAssembly)" />
-
- <Target
- Name="FodyTarget"
- AfterTargets="AfterCompile"
- Condition="Exists('@(IntermediateAssembly)') And $(DesignTimeBuild) != true And $(DisableFody) != true"
- DependsOnTargets="$(FodyDependsOnTargets)"
- Inputs="@(IntermediateAssembly);$(ProjectWeaverXml)"
- Outputs="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache">
-
- <Fody.WeavingTask
- AssemblyFile="@(IntermediateAssembly)"
- IntermediateDirectory="$(ProjectDir)$(IntermediateOutputPath)"
- KeyOriginatorFile="$(KeyOriginatorFile)"
- AssemblyOriginatorKeyFile="$(AssemblyOriginatorKeyFile)"
- ProjectDirectory="$(MSBuildProjectDirectory)"
- ProjectFile="$(MSBuildProjectFullPath)"
- SolutionDirectory="$(SolutionDir)"
- References="@(ReferencePath)"
- SignAssembly="$(SignAssembly)"
- ReferenceCopyLocalFiles="@(ReferenceCopyLocalPaths)"
- DefineConstants="$(DefineConstants)"
- DebugType="$(DebugType)"
- DocumentationFile="@(DocFileItem->'%(FullPath)')"
- WeaverFiles="@(WeaverFiles)"
- NCrunchOriginalSolutionDirectory="$(NCrunchOriginalSolutionDir)"
- IntermediateCopyLocalFilesCache="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache"
- GenerateXsd="$(FodyGenerateXsd)"
- >
-
- <Output
- TaskParameter="ExecutedWeavers"
- PropertyName="FodyExecutedWeavers" />
-
- </Fody.WeavingTask>
-
- <ItemGroup>
- <FileWrites Include="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache" />
- </ItemGroup>
-
- </Target>
-
- <Target
- Name="FodyUpdateCopyLocalFilesTarget"
- AfterTargets="FodyTarget"
- >
-
- <Fody.UpdateReferenceCopyLocalTask
- ReferenceCopyLocalFiles="@(ReferenceCopyLocalPaths)"
- IntermediateCopyLocalFilesCache="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache"
- >
-
- <Output
- TaskParameter="UpdatedReferenceCopyLocalFiles"
- ItemName="FodyUpdatedReferenceCopyLocalPaths" />
-
- </Fody.UpdateReferenceCopyLocalTask>
-
- <ItemGroup>
- <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" />
- <ReferenceCopyLocalPaths Include="@(FodyUpdatedReferenceCopyLocalPaths)" />
- </ItemGroup>
-
- </Target>
-
- <Target
- Name="FodyVerifyTarget"
- AfterTargets="AfterBuild"
- Condition="'$(NCrunch)' != '1' And $(FodyExecutedWeavers) != '' And $(DisableFody) != true"
- DependsOnTargets="$(FodyVerifyDependsOnTargets)">
-
- <Fody.VerifyTask
- ProjectDirectory="$(MSBuildProjectDirectory)"
- TargetPath="$(TargetPath)"
- SolutionDirectory="$(SolutionDir)"
- DefineConstants="$(DefineConstants)"
- NCrunchOriginalSolutionDirectory="$(NCrunchOriginalSolutionDir)"
- />
- </Target>
-
- </Project>
|