1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <Project ToolsVersion =" 4.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3+ <Choose >
4+ <When Condition =" $(NCrunchOriginalSolutionDir) != '' And $(NCrunchOriginalSolutionDir) != '*Undefined*'" >
5+ <PropertyGroup >
6+ <FodySolutionDir >$(NCrunchOriginalSolutionDir)</FodySolutionDir >
7+ </PropertyGroup >
8+ </When >
9+ <When Condition =" $(SolutionDir) != '' And $(SolutionDir) != '*Undefined*'" >
10+ <PropertyGroup >
11+ <FodySolutionDir >$(SolutionDir)</FodySolutionDir >
12+ </PropertyGroup >
13+ </When >
14+ <When Condition =" $(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'" >
15+ <PropertyGroup >
16+ <FodySolutionDir >$(MSBuildProjectDirectory)\..\</FodySolutionDir >
17+ </PropertyGroup >
18+ </When >
19+ </Choose >
20+ <Choose >
21+ <When Condition =" $(KeyOriginatorFile) != '' And $(KeyOriginatorFile) != '*Undefined*'" >
22+ <PropertyGroup >
23+ <FodyKeyFilePath >$(KeyOriginatorFile)</FodyKeyFilePath >
24+ </PropertyGroup >
25+ </When >
26+ <When Condition =" $(AssemblyOriginatorKeyFile) != '' And $(AssemblyOriginatorKeyFile) != '*Undefined*'" >
27+ <PropertyGroup >
28+ <FodyKeyFilePath >$(AssemblyOriginatorKeyFile)</FodyKeyFilePath >
29+ </PropertyGroup >
30+ </When >
31+ <Otherwise >
32+ <PropertyGroup >
33+ <FodyKeyFilePath ></FodyKeyFilePath >
34+ </PropertyGroup >
35+ </Otherwise >
36+ </Choose >
37+ <PropertyGroup >
38+ <IntermediateDir >$(ProjectDir)$(IntermediateOutputPath)</IntermediateDir >
39+ <FodyMessageImportance Condition =" $(FodyMessageImportance) == '' Or $(FodyMessageImportance) == '*Undefined*'" >Low</FodyMessageImportance >
40+ <FodySignAssembly Condition =" $(FodySignAssembly) == '' Or $(FodySignAssembly) == '*Undefined*'" >$(SignAssembly)</FodySignAssembly >
41+ <FodyPath Condition =" $(FodyPath) == '' Or $(FodyPath) == '*Undefined*'" >$(MSBuildThisFileDirectory)</FodyPath >
42+ </PropertyGroup >
43+ <UsingTask
44+ TaskName =" Fody.WeavingTask"
45+ AssemblyFile =" $(FodyPath)\Fody.dll" />
46+ <Target
47+ AfterTargets =" AfterCompile"
48+ Name =" WinFodyTarget"
49+ Condition =" '$(OS)' == 'Windows_NT'" >
50+
51+ <Fody .WeavingTask
52+ AssemblyPath =" @(IntermediateAssembly)"
53+ IntermediateDir =" $(IntermediateDir)"
54+ KeyFilePath =" $(FodyKeyFilePath)"
55+ MessageImportance =" $(FodyMessageImportance)"
56+ ProjectDirectory =" $(ProjectDir)"
57+ SolutionDir =" $(FodySolutionDir)"
58+ References =" @(ReferencePath)"
59+ SignAssembly =" $(FodySignAssembly)"
60+ ReferenceCopyLocalPaths =" @(ReferenceCopyLocalPaths)"
61+ DefineConstants =" $(DefineConstants)"
62+ />
63+ </Target >
64+
65+ <Target
66+ AfterTargets =" AfterBuild"
67+ Name =" NonWinFodyTarget"
68+ Condition =" '$(OS)' != 'Windows_NT'" >
69+ <Fody .WeavingTask
70+ AssemblyPath =" $(TargetPath)"
71+ IntermediateDir =" $(IntermediateDir)"
72+ KeyFilePath =" $(FodyKeyFilePath)"
73+ MessageImportance =" $(FodyMessageImportance)"
74+ ProjectDirectory =" $(ProjectDir)"
75+ SolutionDir =" $(FodySolutionDir)"
76+ References =" @(ReferencePath)"
77+ SignAssembly =" $(FodySignAssembly)"
78+ ReferenceCopyLocalPaths =" $(ReferenceCopyLocalPaths)"
79+ DefineConstants =" $(DefineConstants)"
80+ />
81+ </Target >
82+
83+
84+ <!-- Support for ncrunch-->
85+ <ItemGroup >
86+ <None Include =" $(FodyPath)\*.*" />
87+ </ItemGroup >
88+
89+ </Project >
0 commit comments