-
Notifications
You must be signed in to change notification settings - Fork 46
/
Top.module
45 lines (35 loc) · 2.15 KB
/
Top.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<Import Project="$(RootDir)\bin\Module.targets" />
<ItemGroup>
<LicenseFile Include="Gallio License.txt" />
<LicenseFile Include="ASL - Apache Software Foundation License.txt" />
<File Include="Credits.html" />
<Feature Include="NO_ILMERGE" Condition="'$(SkipILMerge)'=='true'" />
<Feature Include="DOTNET40" Condition="'$(DotNetFrameworkVersion)'=='4.0'" />
</ItemGroup>
<ItemGroup Condition="'$(SkipSources)'!='true'">
<Feature Include="FEATURE_SOURCES" />
</ItemGroup>
<Target Name="BeforeImage"
DependsOnTargets="BuildSourcesFile" />
<Target Name="BuildSourcesFile"
Condition="'$(SkipSources)'!='true'">
<Exec Command="svn.exe info --xml "$(RootDir)" > "$(ModuleTempDir)\svninfo.xml"" />
<XmlQuery XmlFileName="$(ModuleTempDir)\svninfo.xml"
XPath="/info/entry/url">
<Output TaskParameter="Values" ItemName="SvnRepositoryItem" />
</XmlQuery>
<PropertyGroup>
<SvnRepository>%(SvnRepositoryItem._value)</SvnRepository>
</PropertyGroup>
<XmlQuery XmlFileName="$(ModuleTempDir)\svninfo.xml"
XPath="/info/entry/@revision">
<Output TaskParameter="Values" PropertyName="SvnRevision" />
</XmlQuery>
<Error Text="Could not parse SVN info. Use /p:SkipSources=true to skip generating sources.txt."
Condition="'$(SvnRepository)'=='' or '$(SvnRevision)'==''" />
<WriteLinesToFile File="$(ModuleImageDir)\Sources.txt"
Overwrite="true"
Lines="Gallio v$(FileVersion) was generated from the following sources.%0D%0A%0D%0ASubversion Repository: $(SvnRepository)%0D%0A Revision: $(SvnRevision)%0D%0A%0D%0APlease visit the following Url for checkout instructions.%0D%0A http://code.google.com/p/mb-unit/source/checkout%0D%0A%0D%0AAlso refer to the wiki for information about how to debug with symbols and source code.%0D%0A http://www.gallio.org/wiki/gallio:debugging_with_symbols_and_source_code" />
</Target>
</Project>