This project has moved. For the latest updates, please go here.
2
Vote

How about adding a .NET 4.5 build in nuget?

description

Simply copy and paste to build.bat at line 11 and change to 4.5.1: [Edit: I think 4.5 might be sufficient, and better than 4.5.1, but 4.5.1 worked for me.]

You guys are a tease with your net45 flag in nuget, but then not providing the net45 package ;)
echo *** Building for .NET 4.5.1...
%MSBUILD% /t:Rebuild /p:TargetFrameworkVersion=v4.5.1 /p:Configuration=Release /p:DefineConstants=DOT_NET_4  "..\Fasterflect\Fasterflect\Fasterflect.csproj"
if errorlevel 1 goto BUILD_FAIL
mkdir package\lib\net451
move /Y ..\Fasterflect\Fasterflect\bin\Release\Fasterflect.dll package\lib\net451\
move /Y ..\Fasterflect\Fasterflect\bin\Release\Fasterflect.xml package\lib\net451\

echo *** Building for .NET 4.5...
%MSBUILD% /t:Rebuild /p:TargetFrameworkVersion=v4.5 /p:Configuration=Release /p:DefineConstants=DOT_NET_4  "..\Fasterflect\Fasterflect\Fasterflect.csproj"
if errorlevel 1 goto BUILD_FAIL
mkdir package\lib\net45
move /Y ..\Fasterflect\Fasterflect\bin\Release\Fasterflect.dll package\lib\net45\
move /Y ..\Fasterflect\Fasterflect\bin\Release\Fasterflect.xml package\lib\net45\
Why do I want this? Maybe I'm missing something in Mono (3.10 on linux) but my 4.5.1 program blows up with a mono runtime assert failure unless I use 4.5.1 (or maybe 4.5) DLLs, because it looks for ExtensionAttribute in the wrong place. Building with the above batch file solves the problem. (Although I have several other problematic DLLs, so it would help if I could reconfigure mono somehow, or maybe it is a mono bug.)
Missing method .ctor in assembly /store/sync/Mono/dbin/Fasterflect.dll, type System.Runtime.CompilerServices.ExtensionAttribute
Can't find custom attr constructor image: /store/sync/Mono/dbin/Fasterflect.dll mtoken: 0x0a000015
* Assertion at /var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0/mono/metadata/class.c:5607, condition `!mono_loader_get_last_error ()' not met

comments

jaredthirsk wrote Oct 30, 2014 at 11:32 AM

Note: I'm not suggesting to replace the 4.0 package, but have this in addition.