Skip to content

Commit

Permalink
Include tools required to load the NuGet project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Beauchamp committed Dec 31, 2015
1 parent 60ed80e commit 3065b09
Show file tree
Hide file tree
Showing 17 changed files with 1,768 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Swashbuckle.OData.Nuget/Swashbuckle.OData.NuGet.nuproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>
<PropertyGroup>
<!--<NuProjPath Condition=" '$(NuProjPath)' == '' ">$(MSBuildExtensionsPath)\NuProj\</NuProjPath>-->
<NuProjPath Condition=" '$(NuProjPath)' == '' ">..\packages\NuProj.0.10.4-beta-gf7fc34e7d8\tools</NuProjPath>
<NuProjPath Condition=" '$(NuProjPath)' == '' ">..\tools\NuProj.0.10.4-beta-gf7fc34e7d8\tools</NuProjPath>
</PropertyGroup>
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!--
===================================================================================================================
_NuProjGetProjectClosure
===================================================================================================================
This target returns the closure of all project references.
INPUTS:
@(_MSBuildProjectReferenceExistent) The project references that actually exist.
OUTPUTS:
@(_NuProjProjectReferenceClosure) The closure of all references. Doesn't include duplicates.
=================================================================================================================== -->

<Target Name="_NuProjGetProjectClosure"
DependsOnTargets="AssignProjectConfiguration;_SplitProjectReferencesByFileExistence"
Returns="@(_NuProjProjectReferenceClosure)">

<!-- Include our project references -->
<ItemGroup>
<_NuProjProjectReferenceClosureWithDuplicates Include="%(_MSBuildProjectReferenceExistent.FullPath)" />
</ItemGroup>

<!-- Include references from our references -->
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)"
Targets="_NuProjGetProjectClosure"
BuildInParallel="$(BuildInParallel)"
Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform)"
Condition="'%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceExistent)' != ''"
ContinueOnError="WarnAndContinue"
RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)">
<Output TaskParameter="TargetOutputs"
ItemName="_NuProjProjectReferenceClosureWithDuplicates" />
</MSBuild>

<!-- Remove duplicates -->
<RemoveDuplicates Inputs="@(_NuProjProjectReferenceClosureWithDuplicates)">
<Output TaskParameter="Filtered"
ItemName="_NuProjProjectReferenceClosure"/>
</RemoveDuplicates>

</Target>

</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions tools/NuProj.0.10.4-beta-gf7fc34e7d8/tools/NuProj.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>

<PropertyGroup>
<NoPackageAnalysis Condition=" '$(NoPackageAnalysis)' == '' ">False</NoPackageAnalysis>
<NoDefaultExcludes Condition=" '$(NoDefaultExcludes)' == '' ">False</NoDefaultExcludes>
<GenerateSymbolPackage Condition=" '$(GenerateSymbolPackage)' == '' ">True</GenerateSymbolPackage>
<EmbedSourceFiles Condition=" '$(EmbedSourceFiles)' == '' ">False</EmbedSourceFiles>
<RequireLicenseAcceptance Condition=" '$(RequireLicenseAcceptance)' == '' ">False</RequireLicenseAcceptance>
<DevelopmentDependency Condition=" '$(DevelopmentDependency)' == '' ">False</DevelopmentDependency>
</PropertyGroup>

<PropertyGroup>
<NuProjTasksPath Condition=" '$(NuProjTasksPath)' == '' ">$(MSBuildThisFileDirectory)NuProj.Tasks.dll</NuProjTasksPath>
<NuProjToolPath Condition=" '$(NuProjToolPath)' == '' ">$(MSBuildThisFileDirectory)</NuProjToolPath>
<NuGetToolPath Condition=" '$(NuGetToolPath)' == '' ">$(NuProjToolPath)</NuGetToolPath>
<NuGetToolExe Condition=" '$(NuGetToolExe)' == '' ">NuGet.exe</NuGetToolExe>
</PropertyGroup>

</Project>
1,052 changes: 1,052 additions & 0 deletions tools/NuProj.0.10.4-beta-gf7fc34e7d8/tools/NuProj.targets

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties">

<ItemType Name="None"
DisplayName="None" />

<ItemType Name="Content"
DisplayName="Content" />

<ContentType Name="Text"
DisplayName="Text file"
ItemType="Content">
</ContentType>

<ContentType Name="XML"
DisplayName="Xml file"
ItemType="Content">
</ContentType>

<ContentType Name="HTML"
DisplayName="Html file"
ItemType="Content">
</ContentType>

<ContentType Name="CSS"
DisplayName="Cascading style sheet"
ItemType="Content">
</ContentType>

<ContentType Name="CSharpFile"
DisplayName="C# file"
ItemType="Content">
</ContentType>

<ContentType Name="Content"
DisplayName="Content"
ItemType="Content">
</ContentType>

<FileExtension Name=".asax"
ContentType="Asax" />
<FileExtension Name=".asmx"
ContentType="HTML" />
<FileExtension Name=".asp"
ContentType="AspPage" />
<FileExtension Name=".txt"
ContentType="Text" />
<FileExtension Name=".resx"
ContentType="RESX" />
<FileExtension Name=".html"
ContentType="HTML" />
<FileExtension Name=".htm"
ContentType="HTML" />
<FileExtension Name=".css"
ContentType="CSS" />
<FileExtension Name=".bmp"
ContentType="BMP" />
<FileExtension Name=".ico"
ContentType="ICO" />
<FileExtension Name=".cur"
ContentType="CUR" />
<FileExtension Name=".vbS"
ContentType="Script" />
<FileExtension Name=".jS"
ContentType="Script" />
<FileExtension Name=".xml"
ContentType="XML" />
<FileExtension Name=".cs"
ContentType="CSharpFile" />
<FileExtension Name=".mht"
ContentType="MHT" />
<FileExtension Name=".manifest"
ContentType="Manifest" />
<FileExtension Name=".rdlc"
ContentType="RDLC" />
<FileExtension Name=".cd"
ContentType="ClassDiagram" />
<FileExtension Name=".licenses"
ContentType="Licenses" />

</ProjectSchemaDefinitions>

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="ProjectReference"
DisplayName="Project Reference"
PageTemplate="generic"
Description="Project reference properties"
xmlns="http://schemas.microsoft.com/build/2009/properties">

<Rule.Categories>
<Category Name="Advanced" DisplayName="Advanced" />
<Category Name="General" DisplayName="General" />
</Rule.Categories>

<Rule.DataSource>
<DataSource Persistence="ProjectFile"
ItemType="ProjectReference"
HasConfigurationCondition="false" />
</Rule.DataSource>

<EnumProperty Name="PackageDirectory"
DisplayName="Package directory"
Category="Advanced"
Description="The directory to receive the output of this reference.">
<EnumValue Name="Lib" DisplayName="lib" />
<EnumValue Name="Tools" DisplayName="tools" />
</EnumProperty>

<BoolProperty Name="ReferenceOutputAssembly"
Category="General"
Visible="false" />

<BoolProperty Name="Private"
Category="General"
Visible="false" />

<BoolProperty Name="CopyLocalSatelliteAssemblies"
Category="General"
Visible="false" />
</Rule>
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="ResolvedProjectReference"
DisplayName="Resolved Project Reference"
PageTemplate="generic"
Description="Resolved project reference"
xmlns="http://schemas.microsoft.com/build/2009/properties">

<Rule.Categories>
<Category Name="Advanced" DisplayName="Advanced" />
<Category Name="General" DisplayName="General" />
</Rule.Categories>

<Rule.DataSource>
<DataSource Persistence="ResolvedReference"
ItemType="ProjectReference"
HasConfigurationCondition="false"
SourceType="TargetResults"
MSBuildTarget="ResolveProjectReferencesDesignTime" />
</Rule.DataSource>

<StringProperty Name="OriginalItemSpec"
ReadOnly="true"
DisplayName="Identity"
Category="General"
Description="The identity of the reference">
</StringProperty>

<StringProperty Name="ResolvedPath"
ReadOnly="true"
DisplayName="Path"
Category="General"
Description="The location of the file being referenced.">

<StringProperty.DataSource>
<DataSource PersistedName="Identity" />
</StringProperty.DataSource>
</StringProperty>

<EnumProperty Name="PackageDirectory"
DisplayName="Package directory"
Category="Advanced"
Description="The directory to receive the output of this reference.">
<EnumProperty.DataSource>
<DataSource Persistence="ProjectFile" ItemType="ProjectReference" HasConfigurationCondition="False" />
</EnumProperty.DataSource>
<EnumValue Name="Lib" DisplayName="lib" />
<EnumValue Name="Tools" DisplayName="tools" />
</EnumProperty>

<StringProperty Name="Version"
ReadOnly="true"
Visible="false" />

<StringProperty Name="RuntimeVersion"
ReadOnly="true"
Visible="false" />

<BoolProperty Name="SpecificVersion"
Visible="false" />

<BoolProperty Name="StrongName"
ReadOnly="true"
Visible="false" />

<!-- This is the metadata we store on the reference item when we add it. -->
<BoolProperty Name="IsWinMDFile"
Visible="false" />

<!-- These are metadata added to the resolved item by MSBuild that we don't show to the user but use internally. -->
<BoolProperty Name="WinMDFile"
Visible="false"
ReadOnly="true" />

<StringProperty Name="RequiredTargetFramework"
Visible="false" />
<StringProperty Name="HintPath"
Visible="false" />
<StringProperty Name="SDKIdentity"
Visible="false" />
<StringProperty Name="FusionName"
Visible="false"
ReadOnly="true" />
<StringProperty Name="Name"
Visible="false"
ReadOnly="True" />
</Rule>
102 changes: 102 additions & 0 deletions tools/NuProj.0.10.4-beta-gf7fc34e7d8/tools/Rules/content.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="Content"
DisplayName="General"
PageTemplate="generic"
Description="Non-build items"
xmlns="http://schemas.microsoft.com/build/2009/properties">

<Rule.DataSource>
<DataSource Persistence="ProjectFile"
HasConfigurationCondition="False"
ItemType="Content" />
</Rule.DataSource>
<Rule.Categories>
<Category Name="Advanced"
DisplayName="Advanced" />
<Category Name="Misc"
DisplayName="Misc" />
</Rule.Categories>

<DynamicEnumProperty Name="{}{ItemType}"
DisplayName="Build Action"
Category="Advanced"
Description="How the file relates to the build and deployment processes."
EnumProvider="ItemTypes" />
<EnumProperty Name="CopyToOutputDirectory"
DisplayName="Copy to Output Directory"
Category="Advanced"
Description="Specifies the source file will be copied to the output directory.">
<EnumValue Name="Never"
DisplayName="Do not copy" />
<EnumValue Name="Always"
DisplayName="Copy always" />
<EnumValue Name="PreserveNewest"
DisplayName="Copy if newer" />
</EnumProperty>

<StringProperty Name="Generator"
Category="Advanced"
DisplayName="Custom Tool"
Description="Specifies the tool that transforms a file at design time and places the output of that transformation into another file. For example, a dataset (.xsd) file comes with a default custom tool." />
<StringProperty Name="CustomToolNamespace"
Category="Advanced"
DisplayName="Custom Tool Namespace"
Description="The namespace into which the output of the custom tool is placed." />

<StringProperty Name="Identity"
DisplayName="File Name"
ReadOnly="true"
Category="Misc"
Description="Name of the file or folder.">
<StringProperty.DataSource>
<DataSource Persistence="Intrinsic"
ItemType="Content"
PersistedName="Identity" />
</StringProperty.DataSource>
</StringProperty>

<StringProperty Name="FullPath"
DisplayName="Full Path"
ReadOnly="true"
Category="Misc"
Description="Location of the file.">
<StringProperty.DataSource>
<DataSource Persistence="Intrinsic"
ItemType="Content"
PersistedName="FullPath" />
</StringProperty.DataSource>
</StringProperty>

<StringProperty Name="URL"
ReadOnly="true"
Visible="false">
<StringProperty.DataSource>
<DataSource Persistence="Intrinsic"
ItemType="Content"
PersistedName="FullPath" />
</StringProperty.DataSource>
</StringProperty>
<BoolProperty Name="Visible"
Visible="false" />
<StringProperty Name="DependentUpon"
Visible="false" />
<StringProperty Name="Link"
Visible="false" />
<StringProperty Name="Extension"
Visible="False">
<StringProperty.DataSource>
<DataSource Persistence="Intrinsic"
ItemType="Content"
PersistedName="Extension" />
</StringProperty.DataSource>
</StringProperty>
<StringProperty Name="LastGenOutput"
Visible="false"
Description="The filename of the last file generated as a result of the SFG." />
<BoolProperty Name="DesignTime"
Visible="false"
Description="A value indicating whether this file has a designer." />
<BoolProperty Name="AutoGen"
Visible="false"
Description="A value indicating whether this is a generated file." />
</Rule>
Loading

0 comments on commit 3065b09

Please sign in to comment.