msbuild.flymake.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
  2. DefaultTargets="CompileAll"
  3. ToolsVersion="3.5"
  4. >
  5. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  6. <PropertyGroup>
  7. <Optimize>false</Optimize>
  8. <DebugSymbols>true</DebugSymbols>
  9. <!-- <OutputPath>.\bin\</OutputPath> -->
  10. <OutputPath>.\</OutputPath>
  11. <OutDir>.\</OutDir>
  12. <IntermediateOutputPath>.\obj\</IntermediateOutputPath>
  13. </PropertyGroup>
  14. <!-- specify reference assemblies for all builds in this project -->
  15. <ItemGroup>
  16. <Reference Include="mscorlib" />
  17. <Reference Include="System" />
  18. <Reference Include="System.Core" />
  19. <!-- <Reference Include="System.Data" /> -->
  20. <!-- <Reference Include="System.Data.Linq" /> -->
  21. <Reference Include="..\Zlib\bin\Debug\Ionic.Zlib.dll" /> <!-- ZLIB -->
  22. </ItemGroup>
  23. <!-- This ItemGroup includes every .cs source file in the directory, -->
  24. <!-- except for the one indicated by OriginalSourceFile. In flymake, that -->
  25. <!-- property indicates the currently edited file. So the result is that the -->
  26. <!-- ItemGroup CSFile will include all files, including the _flymake.cs clone, -->
  27. <!-- but not including the original file. Which is what we want. -->
  28. <ItemGroup>
  29. <CSFile Include="*.cs" Exclude="$(OriginalSourceFile)" />
  30. </ItemGroup>
  31. <!-- Stuff the OriginalSourceFile property into an ItemGroup. -->
  32. <!-- We do this so we can get at the metadata, which I Think is available only -->
  33. <!-- through an item within an ItemGroup. We want the root filename, which -->
  34. <!-- we use to name the output netmodule. -->
  35. <ItemGroup>
  36. <ExcludedCSFile Include="$(OriginalSourceFile)" />
  37. </ItemGroup>
  38. <Target Name="CheckSyntax"
  39. DependsOnTargets="ResolveAssemblyReferences"
  40. >
  41. <Message Text="Sources = @(CSFile)" />
  42. <!-- Run the Visual C# compilation on the specified set of .cs files. -->
  43. <CSC
  44. Sources="@(CSFile)"
  45. References="@(ReferencePath)"
  46. TargetType="module"
  47. Toolpath="$(MSBuildToolsPath)"
  48. OutputAssembly="%(ExcludedCSFile.Filename)_flymake.netmodule"
  49. Nologo="true"
  50. />
  51. </Target>
  52. </Project>