-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net 4.0 Cross Compile, Updated Dynamitey
- Loading branch information
Showing
10 changed files
with
125 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Dynamitey" version="0.8.0.6" targetFramework="portable-win+net45+sl50" /> | ||
<package id="Dynamitey" version="1.0.2.0" targetFramework="portable-win+net45+sl50" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Dynamitey" version="0.8.0.6" targetFramework="net45" /> | ||
<package id="Dynamitey" version="1.0.2.0" targetFramework="net45" /> | ||
<package id="FsUnit" version="1.2.1.0" targetFramework="net45" /> | ||
<package id="NUnit" version="2.6.2" targetFramework="net40" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<SolName Condition=" '$(SolName)' == '' ">MySolution</SolName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectToBuild Include="..\$(SolName).sln"> | ||
<Properties>Configuration=Release;</Properties> | ||
</ProjectToBuild> | ||
<ProjectToBuild Include="..\$(SolName).sln"> | ||
<Properties>Configuration=Release;OutputPath=bin\Release.net40\;IntermediateOutputPath=obj\Release.net40\;UseNet40=true;</Properties> | ||
</ProjectToBuild> | ||
</ItemGroup> | ||
<Target Name="Build"> | ||
<MSBuild Projects="@(ProjectToBuild)"/> | ||
</Target> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
try{ | ||
|
||
$solname = "FSharp.Dynamic" | ||
$testname = "Tests" | ||
$projectname = $solname | ||
$projecttype ="fsproj" | ||
|
||
#Build PCL and .NET version from one project using msbuild script | ||
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe build.proj /p:solname=$solname | ||
|
||
if (!$?){ | ||
throw $error[0].Exception | ||
} | ||
|
||
#Download and configure Nunit test runner | ||
..\.nuget\nuget.exe install NUnit.Runners -Version 2.6.2 -o ..\packages | ||
Copy-Item nunit-console.exe.config ..\packages\NUnit.Runners.2.6.2\tools\ | ||
|
||
if (!$?){ | ||
throw $error[0].Exception | ||
} | ||
|
||
#Test .net 40 | ||
Echo "Testing Net40" | ||
..\packages\NUnit.Runners.2.6.2\tools\nunit-console.exe /framework:net-4.0 /noxml /nodots /labels /stoponerror /exclude=Performance ..\$testname\bin\Release.net40\$testname.dll | ||
|
||
if (!$?){ | ||
throw $error[0].Exception | ||
} | ||
|
||
#Test portable | ||
Echo "Testing Portable" | ||
..\packages\NUnit.Runners.2.6.2\tools\nunit-console.exe /framework:net-4.5 /noxml /nodots /labels /stoponerror /exclude=Performance ..\$testname\bin\Release\$testname.dll | ||
|
||
if (!$?){ | ||
throw $error[0].Exception | ||
} | ||
|
||
|
||
}catch{ | ||
Echo "Build Failed" | ||
exit | ||
} | ||
|
||
#if successful create nuget package | ||
..\.nuget\nuget.exe pack ..\$projectname\$projectname.$projecttype -Properties Configuration=Release -Symbols | ||
Echo "Nuget Success" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<!-- | ||
The .NET 2.0 build of the console runner only | ||
runs under .NET 2.0 or higher. The setting | ||
useLegacyV2RuntimeActivationPolicy only applies | ||
under .NET 4.0 and permits use of mixed mode | ||
assemblies, which would otherwise not load | ||
correctly. | ||
--> | ||
<startup useLegacyV2RuntimeActivationPolicy="true"> | ||
<!-- Comment out the next line to force use of .NET 4.0 --> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
<runtime> | ||
<!-- Ensure that test exceptions don't crash NUnit --> | ||
<legacyUnhandledExceptionPolicy enabled="1"/> | ||
<!-- Run partial trust V2 assemblies in full trust under .NET 4.0 --> | ||
<loadFromRemoteSources enabled="true"/> | ||
<!-- Look for addins in the addins directory for now --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<probing privatePath="lib;addins"/> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |