Skip to content

Commit

Permalink
Added solution items, uploaded nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Ray committed Apr 13, 2015
1 parent 05a7667 commit 80e964e
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 1 deletion.
File renamed without changes.
7 changes: 7 additions & 0 deletions ShaneSpace.ProjectedDynamicLinq.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShaneSpace.ProjectedDynamicLinq", "src\ShaneSpace.ProjectedDynamicLinq\ShaneSpace.ProjectedDynamicLinq.csproj", "{3DBE2041-1A0F-4915-8103-923D091BE238}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{749DB5BA-C7D6-481E-9647-369C1444B522}"
ProjectSection(SolutionItems) = preProject
build\BuildAndPackNuget.cmd = build\BuildAndPackNuget.cmd
ReadMe.md = ReadMe.md
build\ShaneSpace.ProjectedDynamicLinq.nuspec = build\ShaneSpace.ProjectedDynamicLinq.nuspec
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
45 changes: 45 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@echo off

set MSBUILDDIR=C:\Program Files (x86)\MSBuild\12.0\bin\
IF EXIST "%MSBUILDDIR%msbuild.exe" goto RunIt

set MSBUILDDIR=C:\Program Files\MSBuild\12.0\bin\
IF EXIST %MSBUILDDIR%msbuild.exe goto RunIt

:: find msbuild and compile sln in root
reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath > nul 2>&1
if ERRORLEVEL 1 goto MissingMSBuildRegistry

for /f "skip=2 tokens=2,*" %%A in ('reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath') do SET MSBUILDDIR=%%B

IF NOT EXIST %MSBUILDDIR%nul goto MissingMSBuildToolsPath
IF NOT EXIST %MSBUILDDIR%msbuild.exe goto MissingMSBuildExe

:RunIt

echo %MSBUILDDIR%

:: restore packages for all sln files
for /f %%l in ('dir /b *.sln') do (
"%CD%/build/nuget.exe" restore %%l
)

:: build all sln files in the root folder
for /f %%l in ('dir /b *.sln') do (
"%MSBUILDDIR%msbuild.exe" %%l /m /p:Configuration=Release
)

goto:eof


::ERRORS
::---------------------
:MissingMSBuildRegistry
echo Cannot obtain path to MSBuild tools from registry
goto:eof
:MissingMSBuildToolsPath
echo The MSBuild tools path from the registry '%MSBUILDDIR%' does not exist
goto:eof
:MissingMSBuildExe
echo The MSBuild executable could not be found at '%MSBUILDDIR%'
goto:eof
16 changes: 16 additions & 0 deletions build/BuildAndPackNuget.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
:: Jump up a directory
cd ..

:: call build cmd located in root
call build.cmd

:: Jump back to build folder
cd build

:: remove all nupkg files
erase *.nupkg

:: pack everything in build folder
for /f %%l in ('dir /b *.nuspec') do (
nuget.exe pack %%l
)
20 changes: 20 additions & 0 deletions build/ShaneSpace.ProjectedDynamicLinq.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>ShaneSpace.ProjectedDynamicLinq</id>
<version>1.0.0</version>
<title>ShaneSpace.ProjectedDynamicLinq</title>
<description>This is a modified copy of the Microsoft assembly for the .Net 4.0 Dynamic language functionality to work with Automapper and projections.</description>
<authors>Shane Ray</authors>
<owners>Shane Ray</owners>
<projectUrl>https://github.com/shaneray/ShaneSpace.ProjectedDynamicLinq</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright 2015 Shane Ray</copyright>
<dependencies>
<dependency id="AutoMapper" version="3.3.1" />
</dependencies>
</metadata>
<files>
<file src="..\src\ShaneSpace.ProjectedDynamicLinq\bin\Release\ShaneSpace.ProjectedDynamicLinq.dll" target="lib\net45" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="ReadMe.md" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\packages\AutoMapper.3.3.1\tools\AutoMapper.targets" Condition="Exists('..\..\packages\AutoMapper.3.3.1\tools\AutoMapper.targets')" />
Expand Down

0 comments on commit 80e964e

Please sign in to comment.