Permalink
Browse files

- update build

  • Loading branch information...
1 parent 72c6b8d commit 2c69a14bf3009f0b1c4e0e7eb29ba5e4406b180b @pwelter34 pwelter34 committed Nov 17, 2011
View
4 .gitignore
@@ -1,6 +1,7 @@
bin/
obj/
_ReSharper.*/
+build/
*.user
*.suo
*.pdb
@@ -17,4 +18,5 @@ _ReSharper.*/
*.webinfo
*.resharper
*.Cache
-*.zip
+*.zip
+*.nupkg
View
27 EntityFramework.Extended.nuspec
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>EntityFramework.Extended</id>
+ <version>1.0.0.0</version>
+ <authors>LoreSoft</authors>
+ <owners>LoreSoft</owners>
+ <projectUrl>https://github.com/loresoft/EntityFramework.Extended</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Entity Framework extensions library.</description>
+ <language>en-US</language>
+ <dependencies>
+ <dependency id="EntityFramework" version="4.2.0.0" />
+ </dependencies>
+ <frameworkAssemblies>
+ <frameworkAssembly assemblyName="System.Data.Entity" targetFramework="" />
+ <frameworkAssembly assemblyName="System.ComponentModel.DataAnnotations" targetFramework="" />
+ </frameworkAssemblies>
+ </metadata>
+ <files>
+ <file src="readme.md" target="content\readme.md" />
+ <file src="Build\Package\EntityFramework.Extended.dll" target="lib\net40\EntityFramework.Extended.dll" />
+ <file src="Build\Package\EntityFramework.Extended.pdb" target="lib\net40\EntityFramework.Extended.pdb" />
+ <file src="Build\Package\EntityFramework.Extended.xml" target="lib\net40\EntityFramework.Extended.xml" />
+ <file src="Source\EntityFramework.Extended\**\*.cs" target="src" />
+ </files>
+</package>
View
9 Libraries/MSBuild.Community.Tasks.Targets
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!-- $Id: MSBuild.Community.Tasks.Targets 495 2010-03-25 22:16:41Z pwelter34 $ -->
+ <!-- $Id: MSBuild.Community.Tasks.Targets 518 2011-11-17 05:12:19Z pwelter34 $ -->
<PropertyGroup>
<MSBuildCommunityTasksPath Condition="'$(MSBuildCommunityTasksPath)' == ''">$(MSBuildExtensionsPath)\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
@@ -93,7 +93,7 @@
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnVersion" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnStatus" />
- <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Tfs.TfsVersion" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Tfs.TfsClient" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.TemplateFile" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Time" />
@@ -127,7 +127,10 @@
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SymbolServer.SymStore" />
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Net.HttpRequest" />
-
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NuGet.NuGetPack" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NuGet.NuGetPush" />
+
<ItemGroup>
<FxCopRuleAssemblies Include="UsageRules.dll"/>
<FxCopRuleAssemblies Include="SecurityRules.dll"/>
View
BIN Libraries/MSBuild.Community.Tasks.dll
Binary file not shown.
View
220 Libraries/MSBuild.Community.Tasks.xml
@@ -1688,6 +1688,127 @@
Optional; the name of the file to write the response to.
</summary>
</member>
+ <member name="T:MSBuild.Community.Tasks.NuGet.NuGetBase">
+ <summary>
+ A base class for NuGet tasks.
+ </summary>
+ </member>
+ <member name="M:MSBuild.Community.Tasks.NuGet.NuGetBase.GenerateFullPathToTool">
+ <summary>
+ Returns the fully qualified path to the executable file.
+ </summary>
+ <returns>
+ The fully qualified path to the executable file.
+ </returns>
+ </member>
+ <member name="M:MSBuild.Community.Tasks.NuGet.NuGetBase.GetWorkingDirectory">
+ <summary>
+ Returns the directory in which to run the executable file.
+ </summary>
+ <returns>
+ The directory in which to run the executable file, or a null reference (Nothing in Visual Basic) if the executable file should be run in the current directory.
+ </returns>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetBase.WorkingDirectory">
+ <summary>
+ Gets or sets the working directory.
+ </summary>
+ <value>The working directory.</value>
+ <returns>
+ The directory in which to run the executable file, or a null reference (Nothing in Visual Basic) if the executable file should be run in the current directory.
+ </returns>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetBase.ToolName">
+ <summary>
+ Gets the name of the executable file to run.
+ </summary>
+ <value></value>
+ <returns>The name of the executable file to run.</returns>
+ </member>
+ <member name="T:MSBuild.Community.Tasks.NuGet.NuGetPack">
+ <summary>
+ Creates a NuGet package based on the specified nuspec or project file.
+ </summary>
+ </member>
+ <member name="M:MSBuild.Community.Tasks.NuGet.NuGetPack.GenerateCommandLineCommands">
+ <summary>
+ Returns a string value containing the command line arguments to pass directly to the executable file.
+ </summary>
+ <returns>
+ A string value containing the command line arguments to pass directly to the executable file.
+ </returns>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPack.File">
+ <summary>
+ The location of the nuspec or project file to create a package.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPack.OutputDirectory">
+ <summary>
+ Specifies the directory for the created NuGet package.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPack.Version">
+ <summary>
+ Overrides the version number from the nuspec file.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPack.BasePath">
+ <summary>
+ The base path of the files defined in the nuspec file.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPack.Verbose">
+ <summary>
+ Shows verbose output for package building.
+ </summary>
+ <value><c>true</c> if verbose; otherwise, <c>false</c>.</value>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPack.Symbols">
+ <summary>
+ Determines if a package containing sources and symbols should be created. When specified with a nuspec,
+ creates a regular NuGet package file and the corresponding symbols package.
+ </summary>
+ <value>
+ <c>true</c> if symbols; otherwise, <c>false</c>.
+ </value>
+ </member>
+ <member name="T:MSBuild.Community.Tasks.NuGet.NuGetPush">
+ <summary>
+ Pushes a package to the server and optionally publishes it.
+ </summary>
+ </member>
+ <member name="M:MSBuild.Community.Tasks.NuGet.NuGetPush.GenerateCommandLineCommands">
+ <summary>
+ Returns a string value containing the command line arguments to pass directly to the executable file.
+ </summary>
+ <returns>
+ A string value containing the command line arguments to pass directly to the executable file.
+ </returns>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPush.File">
+ <summary>
+ The path to the package to push the package to the server.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPush.APIKey">
+ <summary>
+ The API key to use for push to the server.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPush.Source">
+ <summary>
+ Specifies the server URL.
+ </summary>
+ </member>
+ <member name="P:MSBuild.Community.Tasks.NuGet.NuGetPush.CreateOnly">
+ <summary>
+ Specifies if the package should be created and uploaded to the server but not published to the server. False by default.
+ </summary>
+ <value>
+ <c>true</c> if create only; otherwise, <c>false</c>.
+ </value>
+ </member>
<member name="M:MSBuild.Community.Tasks.PathUtil.RelativePathTo(System.String,System.String)">
<summary>
Creates a relative path from one file
@@ -4216,99 +4337,50 @@
<value></value>
<returns>The <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.</returns>
</member>
- <member name="T:MSBuild.Community.Tasks.Tfs.IServer">
- <summary>
- Describes the behavior of a Team Foundation Server
- </summary>
- <exclude />
- </member>
- <member name="M:MSBuild.Community.Tasks.Tfs.IServer.GetLatestChangesetId(System.String,System.Net.ICredentials)">
- <summary>
- Retrieves the latest changeset ID associated with a path
- </summary>
- <param name="localPath">A path on the local filesystem</param>
- <param name="credentials">Credentials used to authenticate against the serer</param>
- <returns></returns>
- </member>
- <member name="T:MSBuild.Community.Tasks.Tfs.TeamFoundationServer">
- <summary>
- Handles all communication with the Team Foundation Server
- </summary>
- </member>
- <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServer.#ctor(System.String)">
- <summary>
- Creates an instace of the TeamFoundationServer class
- </summary>
- <param name="clientLocation">The local file path containing the TFS libraries. null if TFS is in the GAC.</param>
- </member>
- <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServer.GetLatestChangesetId(System.String,System.Net.ICredentials)">
- <summary>
- Retrieves the latest changeset ID associated with a path
- </summary>
- <param name="localPath">A path on the local filesystem</param>
- <param name="credentials">Credentials used to authenticate against the serer</param>
- <returns></returns>
- </member>
- <member name="T:MSBuild.Community.Tasks.Tfs.TeamFoundationServerException">
- <summary>
- Exceptions returned by the Team Foundation Server
- </summary>
- <exclude />
- </member>
- <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServerException.#ctor">
- <summary>
- Creates a new instance of the exception
- </summary>
- </member>
- <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServerException.#ctor(System.String)">
- <summary>
- Creates a new instance of the exception
- </summary>
- <param name="message">A description of the exception</param>
- </member>
- <member name="T:MSBuild.Community.Tasks.Tfs.TfsVersion">
+ <member name="M:MSBuild.Community.Tasks.Tfs.TfsClient.GenerateFullPathToTool">
<summary>
- Determines the changeset in a local Team Foundation Server workspace
- </summary>
- </member>
- <member name="M:MSBuild.Community.Tasks.Tfs.TfsVersion.Execute">
- <summary>
- Runs the exectuable file with the specified task parameters.
+ Returns the fully qualified path to the executable file.
</summary>
<returns>
- true if the task runs successfully; otherwise, false.
+ The fully qualified path to the executable file.
</returns>
</member>
- <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Username">
+ <member name="M:MSBuild.Community.Tasks.Tfs.TfsClient.LogToolCommand(System.String)">
<summary>
- The user to authenticate on the server
+ Logs the starting point of the run to all registered loggers.
</summary>
- <remarks>Leave empty to use the credentials of the current user.</remarks>
+ <param name="message">A descriptive message to provide loggers, usually the command line and switches.</param>
</member>
- <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Password">
+ <member name="M:MSBuild.Community.Tasks.Tfs.TfsClient.GenerateCommandLineCommands">
<summary>
- The password for the user to authenticate on the server
+ Returns a string value containing the command line arguments to pass directly to the executable file.
</summary>
- <remarks>Leave empty to use the credentials of the current user.</remarks>
+ <returns>
+ A string value containing the command line arguments to pass directly to the executable file.
+ </returns>
</member>
- <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Domain">
+ <member name="M:MSBuild.Community.Tasks.Tfs.TfsClient.ValidateParameters">
<summary>
- The domain of the user to authenticate on the server
+ Indicates whether all task paratmeters are valid.
</summary>
- <remarks>Leave empty to use the credentials of the current user.</remarks>
- </member>
- <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.LocalPath">
- <summary>Path to local working copy.</summary>
+ <returns>
+ true if all task parameters are valid; otherwise, false.
+ </returns>
</member>
- <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Changeset">
+ <member name="P:MSBuild.Community.Tasks.Tfs.TfsClient.StandardOutputLoggingImportance">
<summary>
- The latest changeset ID in the local path
+ Gets the <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.
</summary>
+ <value></value>
+ <returns>The <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.</returns>
</member>
- <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.TfsLibraryLocation">
+ <member name="P:MSBuild.Community.Tasks.Tfs.TfsClient.ToolName">
<summary>
- The location of the Team Foundation Server client assemblies. Leave empty when the client is installed in the Global Assembly Cache.
+ Gets the name of the executable file to run.
</summary>
+ <returns>
+ The name of the executable file to run.
+ </returns>
</member>
<member name="T:MSBuild.Community.Tasks.Services.IRegistry">
<summary>
View
BIN Libraries/NuGet.exe
Binary file not shown.
View
67 Master.proj
@@ -5,6 +5,7 @@
<BuildConfiguration>Release</BuildConfiguration>
<BuildFolder>Build\$(BuildConfiguration)</BuildFolder>
<PackageFolder>Build\Package</PackageFolder>
+ <TestFolder>Build\Test</TestFolder>
<LibraryFolder>Libraries</LibraryFolder>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\$(LibraryFolder)</MSBuildCommunityTasksPath>
</PropertyGroup>
@@ -13,7 +14,7 @@
<PropertyGroup>
<Major>1</Major>
- <Minor>1</Minor>
+ <Minor>0</Minor>
<Build>0</Build>
<BindBuild>0</BindBuild>
@@ -22,6 +23,11 @@
<BindRevision>0</BindRevision>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(BUILD_NUMBER)' != '' ">
+ <!-- TeamCity Build Number -->
+ <Revision>$(BUILD_NUMBER)</Revision>
+ </PropertyGroup>
+
<PropertyGroup>
<Year>2011</Year>
</PropertyGroup>
@@ -52,13 +58,6 @@
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
- <Version VersionFile="version.txt" RevisionType="Increment">
- <Output TaskParameter="Major" PropertyName="Major" />
- <Output TaskParameter="Minor" PropertyName="Minor" />
- <Output TaskParameter="Build" PropertyName="Build" />
- <Output TaskParameter="Revision" PropertyName="Revision" />
- </Version>
-
<Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/>
<AssemblyInfo CodeLanguage="CS"
@@ -78,18 +77,64 @@
Properties="Configuration=$(BuildConfiguration)"/>
</Target>
- <Target Name="Zip" DependsOnTargets="Compile">
- <CreateItem Include="**\*.*" Exclude="@(DefaultExclude)" >
+ <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.$(Major).$(Minor).$(Build).$(Revision).nupkg"
+ APIKey="$(NuGetAPIKey)" />
+
+ <NuGetPush ToolPath="Libraries"
+ File="Artifacts\EntityFramework.Extended.$(Major).$(Minor).$(Build).$(Revision).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)" />
+
+ <NuGetPack ToolPath="Libraries"
+ File="EntityFramework.Extended.nuspec"
+ Symbols="true"
+ Version="$(Major).$(Minor).$(Build).$(Revision)" />
</Target>
<Target Name="Build">
View
1 Source/EntityFramework.Extended.sln
@@ -7,6 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityFramework.Extended.Te
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BE12C461-E0A7-43E3-B304-8D80D7E3D046}"
ProjectSection(SolutionItems) = preProject
+ ..\EntityFramework.Extended.nuspec = ..\EntityFramework.Extended.nuspec
EntityFramework.Extended.vsmdi = EntityFramework.Extended.vsmdi
Local.testsettings = Local.testsettings
..\Master.proj = ..\Master.proj
View
2 Source/EntityFramework.Extended/EntityFramework.Extended.csproj
@@ -21,6 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Debug\EntityFramework.Extended.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,6 +30,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Release\EntityFramework.Extended.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
View
12 Source/GlobalAssemblyInfo.cs
@@ -17,9 +17,9 @@
[assembly: AssemblyProduct("EntityFramework.Extended")]
[assembly: AssemblyCompany("LoreSoft")]
[assembly: AssemblyCopyright("Copyright © 2011 LoreSoft")]
-[assembly: AssemblyVersion("1.0.0.3")]
-[assembly: AssemblyFileVersion("1.0.0.3")]
-[assembly: AssemblyInformationalVersion("1.0.0.3")]
+[assembly: AssemblyVersion("1.0.0.5")]
+[assembly: AssemblyFileVersion("1.0.0.5")]
+[assembly: AssemblyInformationalVersion("1.0.0.5")]
@@ -31,11 +31,11 @@ internal sealed partial class ThisAssembly {
internal const string AssemblyCopyright = "Copyright © 2011 LoreSoft";
- internal const string AssemblyVersion = "1.0.0.3";
+ internal const string AssemblyVersion = "1.0.0.5";
- internal const string AssemblyFileVersion = "1.0.0.3";
+ internal const string AssemblyFileVersion = "1.0.0.5";
- internal const string AssemblyInformationalVersion = "1.0.0.3";
+ internal const string AssemblyInformationalVersion = "1.0.0.5";
private ThisAssembly() {
}

0 comments on commit 2c69a14

Please sign in to comment.