Skip to content

Commit

Permalink
move to paket
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Mar 14, 2016
1 parent 3668a03 commit 1ce1ffb
Show file tree
Hide file tree
Showing 12 changed files with 515 additions and 156 deletions.
Binary file added .paket/paket.bootstrapper.exe
Binary file not shown.
41 changes: 41 additions & 0 deletions .paket/paket.targets
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
<!-- Download Paket.exe if it does not already exist -->
<DownloadPaket Condition=" '$(DownloadPaket)' == '' ">true</DownloadPaket>
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath>
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
</PropertyGroup>
<PropertyGroup>
<!-- Paket command -->
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)" $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 $(PaketBootStrapperExePath) $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
<!-- Commands -->
<PaketReferences Condition="!Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectDirectory)\paket.references</PaketReferences>
<PaketReferences Condition="!Exists('$(PaketReferences)')">$(MSBuildStartupDirectory)\paket.references</PaketReferences>
<PaketReferences Condition="Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectFullPath).paket.references</PaketReferences>
<RestoreCommand>$(PaketCommand) restore --references-files "$(PaketReferences)"</RestoreCommand>
<DownloadPaketCommand>$(PaketBootStrapperCommand)</DownloadPaketCommand>
<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate paket.exe -->
<Error Condition="'$(DownloadPaket)' != 'true' AND !Exists('$(PaketExePath)')" Text="Unable to locate '$(PaketExePath)'" />
<MsBuild Targets="DownloadPaket" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadPaket=$(DownloadPaket)" />
</Target>
<Target Name="DownloadPaket">
<Exec Command="$(DownloadPaketCommand)" IgnoreStandardErrorWarningFormat="true" Condition=" '$(DownloadPaket)' == 'true' AND !Exists('$(PaketExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(PaketRootPath)" Condition="Exists('$(PaketReferences)')" ContinueOnError="true" />
</Target>
</Project>
5 changes: 5 additions & 0 deletions EditorConfig.VisualStudio.sln
Expand Up @@ -3,6 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.24720.0 VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{5C2A67A1-08E3-45C3-AF51-C5652DDC4BE3}"
ProjectSection(SolutionItems) = preProject
paket.dependencies = paket.dependencies
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EditorConfig.VisualStudi", "EditorConfig.VisualStudio\EditorConfig.VisualStudio.csproj", "{FEAAE923-0664-4072-903F-0C833CD43D36}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EditorConfig.VisualStudi", "EditorConfig.VisualStudio\EditorConfig.VisualStudio.csproj", "{FEAAE923-0664-4072-903F-0C833CD43D36}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EditorConfigItemTemplate", "EditorConfigItemTemplate\EditorConfigItemTemplate.csproj", "{C812CBA0-F505-458A-A984-1B6C5B64DFF0}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EditorConfigItemTemplate", "EditorConfigItemTemplate\EditorConfigItemTemplate.csproj", "{C812CBA0-F505-458A-A984-1B6C5B64DFF0}"
Expand Down
371 changes: 263 additions & 108 deletions EditorConfig.VisualStudio/EditorConfig.VisualStudio.csproj

Large diffs are not rendered by default.

33 changes: 0 additions & 33 deletions EditorConfig.VisualStudio/packages.config

This file was deleted.

30 changes: 30 additions & 0 deletions EditorConfig.VisualStudio/paket.references
@@ -0,0 +1,30 @@
editorconfig
Microsoft.VisualStudio.SDK.VsixSuppression
Microsoft.VSSDK.BuildTools
VSSDK.CoreUtility
VSSDK.CoreUtility.11
VSSDK.DTE
VSSDK.DTE.8
VSSDK.Editor
VSSDK.Editor.11
VSSDK.GraphModel
VSSDK.IDE
VSSDK.IDE.10
VSSDK.IDE.11
VSSDK.IDE.8
VSSDK.IDE.9
VSSDK.Language
VSSDK.Language.11
VSSDK.OLE.Interop
VSSDK.Shell.11
VSSDK.Shell.Immutable.10
VSSDK.Shell.Immutable.11
VSSDK.Shell.Interop
VSSDK.Shell.Interop.10
VSSDK.Shell.Interop.11
VSSDK.Shell.Interop.8
VSSDK.Shell.Interop.9
VSSDK.Text
VSSDK.Text.11
VSSDK.TextManager.Interop
VSSDK.TextManager.Interop.8
33 changes: 22 additions & 11 deletions EditorConfigItemTemplate/EditorConfigItemTemplate.csproj
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.props')" />
<PropertyGroup> <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
Expand Down Expand Up @@ -64,23 +63,35 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include=".editorconfig" /> <None Include=".editorconfig" />
<None Include="packages.config" /> <None Include="paket.references" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" /> <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.targets'))" />
</Target>
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.14.1.24720\build\Microsoft.VSSDK.BuildTools.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
</Target> </Target>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> <Import Project="..\.paket\paket.targets" />
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1')">
<PropertyGroup>
<__paket__Microsoft_VSSDK_BuildTools_props>Microsoft.VSSDK.BuildTools</__paket__Microsoft_VSSDK_BuildTools_props>
<__paket__Microsoft_VSSDK_BuildTools_targets>Microsoft.VSSDK.BuildTools</__paket__Microsoft_VSSDK_BuildTools_targets>
</PropertyGroup>
</When>
</Choose>
<Import Project="..\packages\Microsoft.VSSDK.BuildTools\build\$(__paket__Microsoft_VSSDK_BuildTools_props).props" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools\build\$(__paket__Microsoft_VSSDK_BuildTools_props).props')" Label="Paket" />
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1')">
<ItemGroup>
<Reference Include="Microsoft.Build.Framework.dll">
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
<Import Project="..\packages\Microsoft.VSSDK.BuildTools\build\$(__paket__Microsoft_VSSDK_BuildTools_targets).targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools\build\$(__paket__Microsoft_VSSDK_BuildTools_targets).targets')" Label="Paket" />
</Project>
4 changes: 0 additions & 4 deletions EditorConfigItemTemplate/packages.config

This file was deleted.

1 change: 1 addition & 0 deletions EditorConfigItemTemplate/paket.references
@@ -0,0 +1 @@
Microsoft.VSSDK.BuildTools
13 changes: 13 additions & 0 deletions build.cmd
@@ -0,0 +1,13 @@
@echo off

.paket\paket.bootstrapper.exe
if errorlevel 1 (
exit /b %errorlevel%
)

.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
)

REM packages\build\FAKE\tools\FAKE.exe build.fsx %*
33 changes: 33 additions & 0 deletions paket.dependencies
@@ -0,0 +1,33 @@
source https://api.nuget.org/v3/index.json
framework >= net45

nuget editorconfig 0.12.1
nuget Microsoft.VisualStudio.SDK.VsixSuppression 14.1.15 copy_local: false
nuget Microsoft.VSSDK.BuildTools 14.1.24720 copy_local: false
nuget VSSDK.CoreUtility 11.0.4 copy_local: false
nuget VSSDK.CoreUtility.11 11.0.4 copy_local: false
nuget VSSDK.DTE 7.0.4 copy_local: false
nuget VSSDK.DTE.8 8.0.4 copy_local: false
nuget VSSDK.Editor 11.0.4 copy_local: false
nuget VSSDK.Editor.11 11.0.4 copy_local: false
nuget VSSDK.GraphModel 11.0.4 copy_local: false
nuget VSSDK.IDE 7.0.4 copy_local: false
nuget VSSDK.IDE.10 10.0.4 copy_local: false
nuget VSSDK.IDE.11 11.0.4 copy_local: false
nuget VSSDK.IDE.8 8.0.4 copy_local: false
nuget VSSDK.IDE.9 9.0.4 copy_local: false
nuget VSSDK.Language 11.0.4 copy_local: false
nuget VSSDK.Language.11 11.0.4 copy_local: false
nuget VSSDK.OLE.Interop 7.0.4 copy_local: false
nuget VSSDK.Shell.11 11.0.4 copy_local: false
nuget VSSDK.Shell.Immutable.10 10.0.4 copy_local: false
nuget VSSDK.Shell.Immutable.11 11.0.4 copy_local: false
nuget VSSDK.Shell.Interop 7.0.4 copy_local: false
nuget VSSDK.Shell.Interop.10 10.0.4 copy_local: false
nuget VSSDK.Shell.Interop.11 11.0.4 copy_local: false
nuget VSSDK.Shell.Interop.8 8.0.4 copy_local: false
nuget VSSDK.Shell.Interop.9 9.0.4 copy_local: false
nuget VSSDK.Text 11.0.4 copy_local: false
nuget VSSDK.Text.11 11.0.4 copy_local: false
nuget VSSDK.TextManager.Interop 7.0.4 copy_local: false
nuget VSSDK.TextManager.Interop.8 8.0.4 copy_local: false
107 changes: 107 additions & 0 deletions paket.lock
@@ -0,0 +1,107 @@
FRAMEWORK: >= NET45
NUGET
remote: http://api.nuget.org/v3/index.json
specs:
editorconfig (0.12.1)
Microsoft.VisualStudio.SDK.VsixSuppression (14.1.15) - copy_local: false
Microsoft.VSSDK.BuildTools (14.1.24720) - copy_local: false
VSSDK.CoreUtility (11.0.4) - copy_local: false
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.CoreUtility.11 (11.0.4) - copy_local: false
VSSDK.CoreUtility (>= 11.0.4 < 12.0.0)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.DTE (7.0.4) - copy_local: false
VSSDK.IDE (>= 7.0.4 < 8.0.0)
VSSDK.DTE.8 (8.0.4) - copy_local: false
VSSDK.DTE (>= 7.0.4 < 8.0.0)
VSSDK.IDE.8 (>= 8.0.4 < 9.0.0)
VSSDK.Editor (11.0.4) - copy_local: false
VSSDK.CoreUtility (>= 11.0.4)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Text (>= 11.0.4)
VSSDK.TextManager.Interop (>= 7.0.4 < 8.0.0)
VSSDK.TextManager.Interop.8 (>= 8.0.4 < 9.0.0)
VSSDK.Editor.11 (11.0.4) - copy_local: false
VSSDK.CoreUtility.11 (>= 11.0.4 < 12.0.0)
VSSDK.Editor (>= 11.0.4 < 12.0.0)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.Text.11 (>= 11.0.4 < 12.0.0)
VSSDK.GraphModel (11.0.4) - copy_local: false
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.IDE (7.0.4) - copy_local: false
VSSDK.IDE.10 (10.0.4) - copy_local: false
VSSDK.IDE.11 (11.0.4) - copy_local: false
VSSDK.IDE.8 (8.0.4) - copy_local: false
VSSDK.IDE.9 (9.0.4) - copy_local: false
VSSDK.Language (11.0.4) - copy_local: false
VSSDK.CoreUtility (>= 11.0.4)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.Text (>= 11.0.4)
VSSDK.Language.11 (11.0.4) - copy_local: false
VSSDK.CoreUtility.11 (>= 11.0.4 < 12.0.0)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.Language (>= 11.0.4 < 12.0.0)
VSSDK.Text.11 (>= 11.0.4 < 12.0.0)
VSSDK.OLE.Interop (7.0.4) - copy_local: false
VSSDK.IDE (>= 7.0.4 < 8.0.0)
VSSDK.Shell.11 (11.0.4) - copy_local: false
VSSDK.DTE (>= 7.0.4 < 8.0.0)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Immutable.10 (>= 10.0.4 < 11.0.0)
VSSDK.Shell.Immutable.11 (>= 11.0.4 < 12.0.0)
VSSDK.Shell.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop.11 (>= 11.0.4 < 12.0.0)
VSSDK.Shell.Interop.8 (>= 8.0.4 < 9.0.0)
VSSDK.Shell.Interop.9 (>= 9.0.4 < 10.0.0)
VSSDK.TextManager.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Immutable.10 (10.0.4) - copy_local: false
VSSDK.IDE.10 (>= 10.0.4 < 11.0.0)
VSSDK.Shell.Immutable.11 (11.0.4) - copy_local: false
VSSDK.GraphModel (>= 11.0.4)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop (7.0.4) - copy_local: false
VSSDK.IDE (>= 7.0.4 < 8.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.TextManager.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop.10 (10.0.4) - copy_local: false
VSSDK.IDE.10 (>= 10.0.4 < 11.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop.8 (>= 8.0.4 < 9.0.0)
VSSDK.Shell.Interop.9 (>= 9.0.4 < 10.0.0)
VSSDK.Shell.Interop.11 (11.0.4) - copy_local: false
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop.10 (>= 10.0.4 < 11.0.0)
VSSDK.Shell.Interop.8 (>= 8.0.4 < 9.0.0)
VSSDK.Shell.Interop.9 (>= 9.0.4 < 10.0.0)
VSSDK.Shell.Interop.8 (8.0.4) - copy_local: false
VSSDK.IDE.8 (>= 8.0.4 < 9.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop (>= 7.0.4 < 8.0.0)
VSSDK.TextManager.Interop (>= 7.0.4 < 8.0.0)
VSSDK.TextManager.Interop.8 (>= 8.0.4 < 9.0.0)
VSSDK.Shell.Interop.9 (9.0.4) - copy_local: false
VSSDK.IDE.9 (>= 9.0.4 < 10.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop.8 (>= 8.0.4 < 9.0.0)
VSSDK.TextManager.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Text (11.0.4) - copy_local: false
VSSDK.CoreUtility (>= 11.0.4)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.Text.11 (11.0.4) - copy_local: false
VSSDK.CoreUtility.11 (>= 11.0.4 < 12.0.0)
VSSDK.IDE.11 (>= 11.0.4 < 12.0.0)
VSSDK.Text (>= 11.0.4 < 12.0.0)
VSSDK.TextManager.Interop (7.0.4) - copy_local: false
VSSDK.IDE (>= 7.0.4 < 8.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.TextManager.Interop.8 (8.0.4) - copy_local: false
VSSDK.IDE.8 (>= 8.0.4 < 9.0.0)
VSSDK.OLE.Interop (>= 7.0.4 < 8.0.0)
VSSDK.Shell.Interop (>= 7.0.4 < 8.0.0)
VSSDK.TextManager.Interop (>= 7.0.4 < 8.0.0)

0 comments on commit 1ce1ffb

Please sign in to comment.