3F / DllExport

.NET DllExport with .NET Core support (aka 3F/DllExport aka DllExport.bat)
MIT License
940 stars 131 forks source link

I think i have same issue with 4.7 target framework: #115

Closed adymilk closed 4 years ago

adymilk commented 4 years ago

I think i have same issue with 4.7 target framework:

---Update after installed build tool 2015 it worked

Error The "DllExportAppDomainIsolatedTask" task failed unexpectedly. System.ArgumentException: Requested value 'Version47' was not found.

Server stack trace: in System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument) in System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) in System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) in RGiesecke.DllExport.MSBuild.ExportTaskImplementation1.<>c__DisplayClass8.<GetGetToolPathInternal>b__7(Version version, String toolName) in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:riga 568 in RGiesecke.DllExport.MSBuild.ExportTaskImplementation1.TryToGetToolDirForFxVersion(String toolFileName, Func3 getToolPath, String& toolDirectory) in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:riga 725 in RGiesecke.DllExport.MSBuild.ExportTaskImplementation1.ValidateToolPath(String toolFileName, String currentValue, Func3 getToolPath, String& foundPath) in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:riga 698 in RGiesecke.DllExport.MSBuild.ExportTaskImplementation1.ValidateFrameworkPath() in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:riga 680 in RGiesecke.DllExport.MSBuild.ExportTaskImplementation1.ValidateInputValues() in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:riga 396 in RGiesecke.DllExport.MSBuild.ExportTaskImplementation1.Execute() in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:riga 264 in RGiesecke.DllExport.MSBuild.DllExportAppDomainIsolatedTask.Execute() in c:\Users\rober_000\Documents\Code\unmanaged-exports\RGiesecke.DllExport.MSBuild\DllExportAppDomainIsolatedTask.cs:riga 241 in System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) in System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: in System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) in System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) in Microsoft.Build.Framework.ITask.Execute() in Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() in Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() EasyLoad

Originally posted by @bbday in https://github.com/3F/DllExport/issues/29#issuecomment-349252880

adymilk commented 4 years ago

Thanks for share. It is helpfull

3F commented 4 years ago

I remind everyone,

Our DllExport have no this problem even without my temp solution from #29

3F commented 2 years ago

Yep, just found it again, after #191

Originally posted by @bbday in #29 (comment) ... Thanks for share. It is helpfull

Absolutely no respect to my work <_< Thanks to me,

try to install msbuild tools (~20 MB): https://github.com/3F/DllExport/issues/29#issuecomment-284259126

Points exactly to "Microsoft Build Tools 2015" which solves the problem mentioned by @bbday later.

Anyway, again, regarding to #191

2021, I remind everyone, that was a temp solution. Modern 1.7.4 must work fine without everything that I suggested from original issue. For other case, please open a new one.