Permalink
Browse files

Enabled NuGet package restore

  • Loading branch information...
omar committed Dec 15, 2012
1 parent 434eb62 commit 3d1080138862df617172d59915359bcaa73015dd
Showing with 837 additions and 90,087 deletions.
  1. +5 −3 .gitignore
  2. +7 −0 .hgignore
  3. +6 −0 .nuget/NuGet.Config
  4. BIN .nuget/NuGet.exe
  5. +153 −0 .nuget/NuGet.targets
  6. +199 −196 mesoBoard.Data/mesoBoard.Data.csproj
  7. +152 −149 mesoBoard.Framework/mesoBoard.Framework.csproj
  8. +108 −105 mesoBoard.Services/mesoBoard.Services.csproj
  9. +104 −101 mesoBoard.Tests/mesoBoard.Tests.csproj
  10. +89 −86 mesoBoard.Web.Helpers/mesoBoard.Web.Helpers.csproj
  11. +7 −0 mesoBoard.Web/mesoBoard.Web.csproj
  12. +7 −0 mesoBoard.sln
  13. BIN packages/EntityFramework.4.2.0.0/EntityFramework.4.2.0.0.nupkg
  14. BIN packages/EntityFramework.4.2.0.0/lib/net40/EntityFramework.dll
  15. +0 −13,488 packages/EntityFramework.4.2.0.0/lib/net40/EntityFramework.xml
  16. BIN packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
  17. BIN packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
  18. +0 −39 packages/Moq.4.0.10827/License.txt
  19. BIN packages/Moq.4.0.10827/Moq.4.0.10827.nupkg
  20. BIN packages/Moq.4.0.10827/Moq.chm
  21. BIN packages/Moq.4.0.10827/lib/NET35/Moq.dll
  22. BIN packages/Moq.4.0.10827/lib/NET35/Moq.pdb
  23. +0 −5,768 packages/Moq.4.0.10827/lib/NET35/Moq.xml
  24. BIN packages/Moq.4.0.10827/lib/NET40/Moq.dll
  25. BIN packages/Moq.4.0.10827/lib/NET40/Moq.pdb
  26. +0 −5,120 packages/Moq.4.0.10827/lib/NET40/Moq.xml
  27. BIN packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll
  28. BIN packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll
  29. BIN packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb
  30. +0 −5,101 packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml
  31. BIN packages/NUnit.2.5.10.11092/Logo.ico
  32. BIN packages/NUnit.2.5.10.11092/NUnit.2.5.10.11092.nupkg
  33. +0 −277 packages/NUnit.2.5.10.11092/NUnitFitTests.html
  34. +0 −342 packages/NUnit.2.5.10.11092/fit-license.txt
  35. BIN packages/NUnit.2.5.10.11092/lib/nunit.framework.dll
  36. +0 −10,407 packages/NUnit.2.5.10.11092/lib/nunit.framework.xml
  37. BIN packages/NUnit.2.5.10.11092/lib/nunit.mocks.dll
  38. BIN packages/NUnit.2.5.10.11092/lib/pnunit.framework.dll
  39. +0 −15 packages/NUnit.2.5.10.11092/license.txt
  40. +0 −124 packages/NUnit.2.5.10.11092/tools/NUnitTests.VisualState.xml
  41. +0 −85 packages/NUnit.2.5.10.11092/tools/NUnitTests.config
  42. +0 −14 packages/NUnit.2.5.10.11092/tools/NUnitTests.nunit
  43. +0 −5,971 packages/NUnit.2.5.10.11092/tools/TestResult.xml
  44. +0 −4 packages/NUnit.2.5.10.11092/tools/agent.conf
  45. +0 −18 packages/NUnit.2.5.10.11092/tools/agent.log.conf
  46. +0 −18 packages/NUnit.2.5.10.11092/tools/launcher.log.conf
  47. BIN packages/NUnit.2.5.10.11092/tools/lib/Failure.png
  48. BIN packages/NUnit.2.5.10.11092/tools/lib/Ignored.png
  49. BIN packages/NUnit.2.5.10.11092/tools/lib/Inconclusive.png
  50. BIN packages/NUnit.2.5.10.11092/tools/lib/Skipped.png
  51. BIN packages/NUnit.2.5.10.11092/tools/lib/Success.png
  52. BIN packages/NUnit.2.5.10.11092/tools/lib/fit.dll
  53. BIN packages/NUnit.2.5.10.11092/tools/lib/log4net.dll
  54. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit-console-runner.dll
  55. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit-gui-runner.dll
  56. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit.core.dll
  57. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit.core.interfaces.dll
  58. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit.fixtures.dll
  59. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit.uiexception.dll
  60. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit.uikit.dll
  61. BIN packages/NUnit.2.5.10.11092/tools/lib/nunit.util.dll
  62. BIN packages/NUnit.2.5.10.11092/tools/nunit-agent-x86.exe
  63. +0 −69 packages/NUnit.2.5.10.11092/tools/nunit-agent-x86.exe.config
  64. BIN packages/NUnit.2.5.10.11092/tools/nunit-agent.exe
  65. +0 −69 packages/NUnit.2.5.10.11092/tools/nunit-agent.exe.config
  66. BIN packages/NUnit.2.5.10.11092/tools/nunit-console-x86.exe
  67. +0 −69 packages/NUnit.2.5.10.11092/tools/nunit-console-x86.exe.config
  68. BIN packages/NUnit.2.5.10.11092/tools/nunit-console.exe
  69. +0 −69 packages/NUnit.2.5.10.11092/tools/nunit-console.exe.config
  70. BIN packages/NUnit.2.5.10.11092/tools/nunit-x86.exe
  71. +0 −83 packages/NUnit.2.5.10.11092/tools/nunit-x86.exe.config
  72. BIN packages/NUnit.2.5.10.11092/tools/nunit.exe
  73. +0 −83 packages/NUnit.2.5.10.11092/tools/nunit.exe.config
  74. BIN packages/NUnit.2.5.10.11092/tools/nunit.framework.dll
  75. BIN packages/NUnit.2.5.10.11092/tools/pnunit-agent.exe
  76. +0 −77 packages/NUnit.2.5.10.11092/tools/pnunit-agent.exe.config
  77. BIN packages/NUnit.2.5.10.11092/tools/pnunit-launcher.exe
  78. +0 −77 packages/NUnit.2.5.10.11092/tools/pnunit-launcher.exe.config
  79. BIN packages/NUnit.2.5.10.11092/tools/pnunit.framework.dll
  80. BIN packages/NUnit.2.5.10.11092/tools/pnunit.tests.dll
  81. BIN packages/NUnit.2.5.10.11092/tools/runFile.exe
  82. +0 −43 packages/NUnit.2.5.10.11092/tools/runFile.exe.config
  83. +0 −2 packages/NUnit.2.5.10.11092/tools/runpnunit.bat
  84. +0 −24 packages/NUnit.2.5.10.11092/tools/test.conf
  85. BIN packages/Ninject.2.2.1.4/Ninject.2.2.1.4.nupkg
  86. BIN packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.dll
  87. BIN packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.pdb
  88. +0 −4,646 packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.xml
  89. BIN packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.dll
  90. BIN packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.pdb
  91. +0 −4,691 packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.xml
  92. BIN packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.dll
  93. BIN packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.pdb
  94. +0 −4,641 packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.xml
  95. BIN packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.dll
  96. BIN packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.pdb
  97. +0 −4,686 packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.xml
  98. BIN packages/Ninject.2.2.1.4/lib/sl2/Ninject.dll
  99. BIN packages/Ninject.2.2.1.4/lib/sl2/Ninject.pdb
  100. +0 −4,477 packages/Ninject.2.2.1.4/lib/sl2/Ninject.xml
  101. BIN packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.dll
  102. BIN packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.pdb
  103. +0 −4,439 packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.xml
  104. BIN packages/Ninject.2.2.1.4/lib/sl3/Ninject.dll
  105. BIN packages/Ninject.2.2.1.4/lib/sl3/Ninject.pdb
  106. +0 −4,477 packages/Ninject.2.2.1.4/lib/sl3/Ninject.xml
  107. BIN packages/Ninject.2.2.1.4/lib/sl4/Ninject.dll
  108. BIN packages/Ninject.2.2.1.4/lib/sl4/Ninject.pdb
  109. +0 −4,477 packages/Ninject.2.2.1.4/lib/sl4/Ninject.xml
  110. +0 −52 packages/Ninject.MVC3.2.2.2.0/Content/App_Start/NinjectMVC3.cs.pp
  111. BIN packages/Ninject.MVC3.2.2.2.0/Ninject.MVC3.2.2.2.0.nupkg
  112. BIN packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.dll
  113. BIN packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.pdb
  114. +0 −940 packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.xml
  115. BIN packages/WebActivator.1.4.4/WebActivator.1.4.4.nupkg
  116. BIN packages/WebActivator.1.4.4/lib/net40/WebActivator.dll
  117. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net35-Client/Ninject.Extensions.Conventions.dll
  118. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net35-Client/Ninject.Extensions.Conventions.pdb
  119. +0 −608 packages/ninject.extensions.conventions.2.2.0.5/lib/net35-Client/Ninject.Extensions.Conventions.xml
  120. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net35-Full/Ninject.Extensions.Conventions.dll
  121. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net35-Full/Ninject.Extensions.Conventions.pdb
  122. +0 −620 packages/ninject.extensions.conventions.2.2.0.5/lib/net35-Full/Ninject.Extensions.Conventions.xml
  123. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net40-Client/Ninject.Extensions.Conventions.dll
  124. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net40-Client/Ninject.Extensions.Conventions.pdb
  125. +0 −608 packages/ninject.extensions.conventions.2.2.0.5/lib/net40-Client/Ninject.Extensions.Conventions.xml
  126. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net40-Full/Ninject.Extensions.Conventions.dll
  127. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/net40-Full/Ninject.Extensions.Conventions.pdb
  128. +0 −620 packages/ninject.extensions.conventions.2.2.0.5/lib/net40-Full/Ninject.Extensions.Conventions.xml
  129. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl2/Ninject.Extensions.Conventions.dll
  130. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl2/Ninject.Extensions.Conventions.pdb
  131. +0 −500 packages/ninject.extensions.conventions.2.2.0.5/lib/sl2/Ninject.Extensions.Conventions.xml
  132. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl3-wp/Ninject.Extensions.Conventions.dll
  133. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl3-wp/Ninject.Extensions.Conventions.pdb
  134. +0 −500 packages/ninject.extensions.conventions.2.2.0.5/lib/sl3-wp/Ninject.Extensions.Conventions.xml
  135. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl3/Ninject.Extensions.Conventions.dll
  136. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl3/Ninject.Extensions.Conventions.pdb
  137. +0 −500 packages/ninject.extensions.conventions.2.2.0.5/lib/sl3/Ninject.Extensions.Conventions.xml
  138. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl4/Ninject.Extensions.Conventions.dll
  139. BIN packages/ninject.extensions.conventions.2.2.0.5/lib/sl4/Ninject.Extensions.Conventions.pdb
  140. +0 −500 packages/ninject.extensions.conventions.2.2.0.5/lib/sl4/Ninject.Extensions.Conventions.xml
  141. BIN packages/ninject.extensions.conventions.2.2.0.5/ninject.extensions.conventions.2.2.0.5.nupkg
  142. +0 −9 packages/repositories.config
View
@@ -1,7 +1,9 @@
mesoBoard.Web/App_Data/Attachments/*
# mesoBoard specific
mesoBoard.Web/App_Data/Attachments/
mesoBoard.Web/Themes/Dark
mesoBoard.Web/Plugins/*
mesoBoard.Web/Upload/Avatars/*
mesoBoard.Web/Plugins/
mesoBoard.Web/Upload/Avatars/
packages/
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
View
@@ -1,3 +1,10 @@
# mesoBoard specific
mesoBoard.Web/App_Data/Attachments
mesoBoard.Web/Themes/Dark
mesoBoard.Web/Plugins/
mesoBoard.Web/Upload/Avatars/
packages
# Visual Studio 2012
syntax: glob
View
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
View
Binary file not shown.
View
@@ -0,0 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
<!-- Determines if package restore consent is required to restore packages -->
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
<!-- The official NuGet package source (https://nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
<!--
<PackageSource Include="https://nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
<!-- Windows specific commands -->
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
<PackagesConfig>packages.config</PackagesConfig>
<PackagesDir>$(SolutionDir)packages</PackagesDir>
</PropertyGroup>
<PropertyGroup>
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -o "$(PackagesDir)"</RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
<!-- We need to ensure packages are restored prior to assembly resolve -->
<ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(ResolveReferencesDependsOn);
</ResolveReferencesDependsOn>
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
<!--
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
This effectively acts as a lock that makes sure that the download operation will only happen once and all
parallel builds will have to wait for it to complete.
-->
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
</Target>
<Target Name="_DownloadNuGet">
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
</Target>
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
Condition=" '$(OS)' != 'Windows_NT' " />
<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Core" />
<Using Namespace="System" />
<Using Namespace="System.IO" />
<Using Namespace="System.Net" />
<Using Namespace="Microsoft.Build.Framework" />
<Using Namespace="Microsoft.Build.Utilities" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
OutputFilename = Path.GetFullPath(OutputFilename);
Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
]]>
</Code>
</Task>
</UsingTask>
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<EnvKey ParameterType="System.String" Required="true" />
<EnvValue ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Using Namespace="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
}
catch {
}
]]>
</Code>
</Task>
</UsingTask>
</Project>
Oops, something went wrong.

0 comments on commit 3d10801

Please sign in to comment.