Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 127 lines (112 sloc) 6.869 kb
1dc675f Andrew Peters First!
anpete authored
1 <?xml version="1.0" encoding="utf-8"?>
fe228d5 Andrew Peters Final build tweaks
anpete authored
2 <Project ToolsVersion="4.0" DefaultTargets="Package;Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
3
1dc675f Andrew Peters First!
anpete authored
4 <PropertyGroup>
5 <Configuration>Release</Configuration>
6 <Platform>Any CPU</Platform>
7 <SolutionFile>EntityFramework.sln</SolutionFile>
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
8 <BuildProperties>Platform=$(Platform)</BuildProperties>
76ff1cf Brice Lambson Integrating SkipStrongNames into the build
bricelam authored
9 <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildThisFileDirectory)</SolutionDir>
1dc675f Andrew Peters First!
anpete authored
10 </PropertyGroup>
11
76ff1cf Brice Lambson Integrating SkipStrongNames into the build
bricelam authored
12 <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
13
1dc675f Andrew Peters First!
anpete authored
14 <Target Name="Clean">
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
15 <MSBuild Targets="Clean"
16 Projects="$(SolutionFile)"
17 Properties="Configuration=$(Configuration);$(BuildProperties)" />
18 <MSBuild Targets="Clean"
19 Projects="$(SolutionFile)"
20 Properties="Configuration=ReleaseNet40;$(BuildProperties)" />
1dc675f Andrew Peters First!
anpete authored
21 </Target>
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
22
23 <Target Name="RestorePackages">
76ff1cf Brice Lambson Integrating SkipStrongNames into the build
bricelam authored
24 <PropertyGroup>
25 <RequireRestoreConsent>false</RequireRestoreConsent>
26 </PropertyGroup>
f51d72f Andrew Peters Revert "Disabling parallel build as it breaks our NuGet build"
anpete authored
27 <ItemGroup>
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
28 <RestoreProjFiles Include="src\EntityFramework.SqlServerCompact\*.csproj" />
29 <RestoreProjFiles Include="test\EntityFramework\FunctionalTests\*.csproj" />
30 <RestoreProjFiles Include="test\EntityFramework\FunctionalTests.Transitional\*.csproj" />
31 <RestoreProjFiles Include="test\EntityFramework\UnitTests\*.csproj" />
32 <RestoreProjFiles Include="test\EntityFramework\VBTests\*.vbproj" />
f51d72f Andrew Peters Revert "Disabling parallel build as it breaks our NuGet build"
anpete authored
33 </ItemGroup>
34 <Message Text="Restoring NuGet packages..." Importance="High" />
76ff1cf Brice Lambson Integrating SkipStrongNames into the build
bricelam authored
35 <MSBuild Projects="@(RestoreProjFiles)" Targets="RestorePackages" Properties="RequireRestoreConsent=$(RequireRestoreConsent)" />
36 </Target>
37
38 <Target Name="RestoreSolutionPackages" DependsOnTargets="CheckPrerequisites" AfterTargets="RestorePackages">
39 <PropertyGroup>
40 <PackagesConfig>$([System.IO.Path]::Combine($(NuGetToolsPath), "packages.config"))</PackagesConfig>
41 <SolutionRequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</SolutionRequireConsentSwitch>
42 <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(SolutionRequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
43 </PropertyGroup>
44 <Exec Command="$(RestoreCommand)"
45 LogStandardErrorAsError="true" />
757aff0 Andrew Peters Remaining pre-release build fixes
anpete authored
46 </Target>
47
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
48 <Target Name="Build">
49 <MSBuild Targets="Build"
4229f6d Andrew Peters Disabling parallel build as it breaks our NuGet build
anpete authored
50 Projects="$(SolutionFile)"
c175f6c Arthur Vickers FullyLoadedNuggets (Build NuGet package with both net40 and net45 assemb...
ajcvickers authored
51 Properties="Configuration=$(Configuration);$(BuildProperties);BuildPackages=false" />
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
52 <MSBuild Targets="Build"
53 Projects="$(SolutionFile)"
54 Properties="Configuration=ReleaseNet40;$(BuildProperties);BuildPackages=false" />
1dc675f Andrew Peters First!
anpete authored
55 </Target>
56
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
57 <Target Name="Rebuild">
58 <MSBuild Targets="Rebuild"
4229f6d Andrew Peters Disabling parallel build as it breaks our NuGet build
anpete authored
59 Projects="$(SolutionFile)"
c175f6c Arthur Vickers FullyLoadedNuggets (Build NuGet package with both net40 and net45 assemb...
ajcvickers authored
60 Properties="Configuration=$(Configuration);$(BuildProperties);BuildPackages=false" />
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
61 <MSBuild Targets="Rebuild"
559c1b3 AndriySvyryd Rebuilding the whole EF solution for 4.0 when using build.cmd
AndriySvyryd authored
62 Projects="$(SolutionFile)"
63 Properties="Configuration=ReleaseNet40;$(BuildProperties);BuildPackages=false" />
1dc675f Andrew Peters First!
anpete authored
64 </Target>
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
65
76ff1cf Brice Lambson Integrating SkipStrongNames into the build
bricelam authored
66 <Target Name="CheckSkipStrongNames" DependsOnTargets="RestoreSolutionPackages">
67 <MSBuild Targets="CheckSkipStrongNames"
68 Projects="tools\EF.skipstrongnames.targets" />
69 </Target>
70
71 <Target Name="EnableSkipStrongNames" DependsOnTargets="RestoreSolutionPackages">
72 <MSBuild Targets="EnableSkipStrongNames"
73 Projects="tools\EF.skipstrongnames.targets" />
74 </Target>
75
76 <Target Name="DisableSkipStrongNames" DependsOnTargets="RestoreSolutionPackages">
77 <MSBuild Targets="DisableSkipStrongNames"
78 Projects="tools\EF.skipstrongnames.targets" />
79 </Target>
80
81 <Target Name="Test" DependsOnTargets="CheckSkipStrongNames;Rebuild">
4d8cfb6 Brice Lambson Moving EF.xunit.targets to tools directory
bricelam authored
82 <MSBuild Projects="tools\EF.xunit.targets"
c175f6c Arthur Vickers FullyLoadedNuggets (Build NuGet package with both net40 and net45 assemb...
ajcvickers authored
83 Properties="Configuration=$(Configuration);$(BuildProperties)" />
1dc675f Andrew Peters First!
anpete authored
84 </Target>
85
9f14982 Andrew Peters Adds automatic version numbering for CI builds (or when the BUILD_NUMBER...
anpete authored
86 <Target Name="Package" DependsOnTargets="UpdateVersionNumber;Rebuild">
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
87 <MSBuild Targets="Build"
1dc675f Andrew Peters First!
anpete authored
88 Projects="src\EntityFramework.PowerShell\EntityFramework.PowerShell.csproj"
c175f6c Arthur Vickers FullyLoadedNuggets (Build NuGet package with both net40 and net45 assemb...
ajcvickers authored
89 Properties="Configuration=$(Configuration);$(BuildProperties);Platform=AnyCPU;InternalsInvisble=true;RunCodeAnalysis=false" />
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
90 <MSBuild Targets="Build"
c175f6c Arthur Vickers FullyLoadedNuggets (Build NuGet package with both net40 and net45 assemb...
ajcvickers authored
91 Projects="src\EntityFramework.PowerShell\EntityFramework.PowerShell.csproj"
92 Properties="Configuration=ReleaseNet40;$(BuildProperties);Platform=AnyCPU;InternalsInvisble=true;RunCodeAnalysis=false" />
1dc675f Andrew Peters First!
anpete authored
93 </Target>
94
9f14982 Andrew Peters Adds automatic version numbering for CI builds (or when the BUILD_NUMBER...
anpete authored
95 <Target Name="UpdateVersionNumber" Condition=" '$(BUILD_NUMBER)' != '' ">
96 <PropertyGroup>
fe21680 Glenn Condron Increment number to fix build
glennc authored
97 <DatePart>2$([System.DateTime]::Now.ToString("MMdd"))</DatePart>
9f14982 Andrew Peters Adds automatic version numbering for CI builds (or when the BUILD_NUMBER...
anpete authored
98 <AssemblyVersion>6.0.0.0</AssemblyVersion>
99 <AssemblyFileVersion>6.0.$(DatePart).$(BUILD_NUMBER)</AssemblyFileVersion>
85bdfcd Arthur Vickers DontBeABetaBlocker (Update version strings to beta1)
ajcvickers authored
100 <AssemblyInfoVersion>6.0.0-beta1-$(DatePart)</AssemblyInfoVersion>
9f14982 Andrew Peters Adds automatic version numbering for CI builds (or when the BUILD_NUMBER...
anpete authored
101 </PropertyGroup>
102 <ItemGroup>
103 <Lines Include="using System.Reflection%3b"/>
104 <Lines Include="[assembly:AssemblyVersion(&quot;$(AssemblyVersion)&quot;)]"/>
105 <Lines Include="[assembly:AssemblyFileVersion(&quot;$(AssemblyFileVersion)&quot;)]"/>
106 <Lines Include="[assembly:AssemblyInformationalVersion(&quot;$(AssemblyInfoVersion)&quot;)]" />
107 </ItemGroup>
108 <WriteLinesToFile File="src\SharedAssemblyVersionInfo.cs"
109 Lines="@(Lines)"
110 Overwrite="true"
111 Encoding="UTF-8" />
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
112 <XmlPoke XmlInputPath="src\NuGet\EntityFramework\EntityFramework.nuspec"
9f14982 Andrew Peters Adds automatic version numbering for CI builds (or when the BUILD_NUMBER...
anpete authored
113 Query="//x:package/x:metadata/x:version"
114 Value="$(AssemblyInfoVersion)"
115 Namespaces="&lt;Namespace Prefix='x' Uri='http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' /&gt;" />
a42d380 Brice Lambson Updating NuGet package restore process
bricelam authored
116 <XmlPoke XmlInputPath="src\NuGet\EntityFramework.SqlServerCompact\EntityFramework.SqlServerCompact.nuspec"
9f14982 Andrew Peters Adds automatic version numbering for CI builds (or when the BUILD_NUMBER...
anpete authored
117 Query="//x:package/x:metadata/x:version"
118 Value="$(AssemblyInfoVersion)"
119 Namespaces="&lt;Namespace Prefix='x' Uri='http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' /&gt;" />
120 </Target>
121
2806deb Brice Lambson Automating code coverage (Run using "build /t:CodeCoverage")
bricelam authored
122 <Target Name="CodeCoverage" DependsOnTargets="RestoreSolutionPackages;Build">
123 <MSBuild Projects="tools\EF.opencover.targets"
124 Properties="Configuration=$(Configuration);$(BuildProperties)" />
125 </Target>
126
1dc675f Andrew Peters First!
anpete authored
127 </Project>
Something went wrong with that request. Please try again.