Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 34e5775274
Fetching contributors…

Cannot retrieve contributors at this time

155 lines (126 sloc) 5.57 kB
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfiguration>Release</BuildConfiguration>
<BuildFolder>Build\$(BuildConfiguration)</BuildFolder>
<PackageFolder>Build\Package</PackageFolder>
<TestFolder>Build\Test</TestFolder>
<LibraryFolder>Libraries</LibraryFolder>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\$(LibraryFolder)</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
<PropertyGroup>
<Major>1</Major>
<Minor>0</Minor>
<Build>0</Build>
<BindBuild>0</BindBuild>
<Revision>0</Revision>
<BindRevision>0</BindRevision>
</PropertyGroup>
<PropertyGroup Condition=" '$(BUILD_NUMBER)' != '' ">
<!-- TeamCity Build Number -->
<Revision>$(BUILD_NUMBER)</Revision>
</PropertyGroup>
<PropertyGroup>
<Year>2011</Year>
</PropertyGroup>
<ItemGroup>
<DefaultExclude Include="**\.svn\**" />
<DefaultExclude Include="**\.git\**" />
<DefaultExclude Include="**\bin\**" />
<DefaultExclude Include="**\obj\**" />
<DefaultExclude Include="**\.gitignore" />
<DefaultExclude Include="**\_resharper*\**" />
<DefaultExclude Include="**\*.resharper" />
<DefaultExclude Include="**\*.dotCover" />
<DefaultExclude Include="**\*.user" />
<DefaultExclude Include="**\*.suo" />
<DefaultExclude Include="**\*.zip" />
<DefaultExclude Include="**\*.msi" />
<DefaultExclude Include="**\*.log" />
</ItemGroup>
<Target Name="Clean">
<DeleteTree Directories="**\obj\**;**\bin\**" />
<RemoveDir Directories="$(PackageFolder)" ContinueOnError="true" />
</Target>
<Target Name="Version">
<Time>
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
<Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/>
<AssemblyInfo CodeLanguage="CS"
OutputFile="Source\GlobalAssemblyInfo.cs"
AssemblyProduct="EntityFramework.Extended"
AssemblyCompany="LoreSoft"
AssemblyCopyright="Copyright © $(Year) LoreSoft"
AssemblyVersion="$(Major).$(Minor).$(Build).$(Revision)"
AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)"
AssemblyInformationalVersion="$(Major).$(Minor).$(Build).$(Revision)"
GenerateClass="true"
Condition="$(Revision) != '0' "/>
</Target>
<Target Name="Compile" DependsOnTargets="Clean;Version">
<MSBuild Projects="Source\EntityFramework.Extended.sln"
Properties="Configuration=$(BuildConfiguration)"/>
</Target>
<Target Name="Zip" DependsOnTargets="Package">
<CreateItem Include="$(PackageFolder)\**\*.*" Exclude="@(DefaultExclude)" >
<Output TaskParameter="Include" ItemName="ZipFiles" />
</CreateItem>
<Zip Files="@(ZipFiles)"
ZipFileName="EntityFramework.Extended.v$(Major).$(Minor).$(Build).$(Revision).zip" />
</Target>
<Target Name="Publish">
<RegistryRead KeyName="HKEY_CURRENT_USER\SOFTWARE\MSBuildTasks" ValueName="NuGetAPIKey">
<Output TaskParameter="Value" PropertyName="NuGetAPIKey" />
</RegistryRead>
<!-- Depends on TeamCity Artifacts -->
<NuGetPush ToolPath="Libraries"
File="Artifacts\EntityFramework.Extended.nupkg"
APIKey="$(NuGetAPIKey)" />
<NuGetPush ToolPath="Libraries"
File="Artifacts\EntityFramework.Extended.symbols.nupkg"
APIKey="$(NuGetAPIKey)" />
<CreateItem Include="*.nupkg">
<Output TaskParameter="Include" ItemName="DeleteFiles" />
</CreateItem>
<Delete Files="@(DeleteFiles)" />
</Target>
<Target Name="Package" DependsOnTargets="Compile">
<!-- Clean Files -->
<CreateItem Include="Build\**\*.*">
<Output TaskParameter="Include" ItemName="DeleteFiles" />
</CreateItem>
<Delete Files="@(DeleteFiles)" />
<!-- Release Files -->
<MakeDir Directories="$(PackageFolder)" />
<CreateItem Include="Source\EntityFramework.Extended\bin\$(BuildConfiguration)\EntityFramework.Extended.*">
<Output TaskParameter="Include" ItemName="ReleaseFiles" />
</CreateItem>
<Copy SourceFiles="@(ReleaseFiles)"
DestinationFolder="$(PackageFolder)" />
<!-- Test Files -->
<MakeDir Directories="$(TestFolder)" />
<CreateItem Include="Source\*.Test\bin\$(BuildConfiguration)\*.*">
<Output TaskParameter="Include" ItemName="TestFiles" />
</CreateItem>
<Copy SourceFiles="@(TestFiles)"
DestinationFolder="$(TestFolder)" />
<!-- Clean NuGet Files -->
<CreateItem Include="*.nupkg">
<Output TaskParameter="Include" ItemName="NuGetFiles" />
</CreateItem>
<Delete Files="@(NuGetFiles)" />
<NuGetPack ToolPath="$(MSBuildProjectDirectory)\Libraries"
File="EntityFramework.Extended.nuspec"
Symbols="true"
Version="$(Major).$(Minor).$(Build).$(Revision)" />
<Move SourceFiles="EntityFramework.Extended.$(Major).$(Minor).$(Build).$(Revision).nupkg"
DestinationFiles="EntityFramework.Extended.nupkg" />
<Move SourceFiles="EntityFramework.Extended.$(Major).$(Minor).$(Build).$(Revision).symbols.nupkg"
DestinationFiles="EntityFramework.Extended.symbols.nupkg" />
</Target>
<Target Name="Build">
<CallTarget Targets="Zip" />
</Target>
</Project>
Jump to Line
Something went wrong with that request. Please try again.