3F / DllExport

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

DllExportAppDomainIsolatedTask does not support ProcEnv #151

Closed pansila closed 4 years ago

pansila commented 4 years ago

Steps to reproduce:

  1. Install UnmanagedExports 1.2.7 as I found it before DLLExport when searching.
  2. Install DllExport by DllExport.bat
  3. Remove UnmanagedExports in the references.
  4. Build the project.

Information from Data tab or log data:

Installed: True
Project type: Cs
PkgVer: 1.7.1
Storage: ProjectFiles
Compiler.Platform: x64
Compiler.ordinalsBase: 1
Compiler.rSysObj: False
Compiler.ourILAsm: False
Compiler.customILAsm: 
Compiler.genExpLib: False
Compiler.peCheck: PeIl
Compiler.patches: None
PreProc.Type: None
PreProc.Cmd: 
PostProc.Type: None
PostProc.ProcEnv: $(SolutionPath);$(MSBuildThisFileFullPath)
PostProc.Cmd: 
SignAssembly: 
Identifier: 534F1B0B-BBB9-43A8-AF54-4A0B1EC52000
Instance: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\amd64\MSBuild.exe
Project path: D:\projects\zjgport-video\doc\OpenAPI安全认证库(C#)-V1.0.1_20191212100705\OpenAPI_cdel\OpenAPI_cdel.csproj
Action: Configure
PlatformTarget: x64
TargetFramework: 
TargetFrameworks: 
TargetFrameworkVersion: v4.7.2
RootNamespace: OpenAPI_cdel
AssemblyName: OpenAPI_cdel
MgrArgs: 
MetaLib: tools\raw\lib\net20\DllExport.dll
MetaCor: tools\raw\lib\netstd\DllExport.dll
Proxy: 
StoragePath: .net.dllexport.targets
ddNS: OpenAPI_cdel
ddNS max buffer: 500
UseCecil: True
intermediateFiles: False
timeout: 30000
RootPath: D:\projects\zjgport-video\doc\OpenAPI安全认证库(C#)-V1.0.1_20191212100705\
PkgPath: D:\projects\zjgport-video\doc\OpenAPI安全认证库(C#)-V1.0.1_20191212100705\packages\\DllExport.1.7.1\
SlnFile: 
SlnDir: D:\projects\zjgport-video\doc\OpenAPI安全认证库(C#)-V1.0.1_20191212100705\.\
DxpTarget: tools\net.r_eg.DllExport.targets
MsgGuiLevel: -1
LockIfError: 

. . . {attachment if log}

Demo Project files / Samples / etc.:

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
//using RGiesecke.DllExport;

namespace OpenAPI_cdel
{
    public class Class1
    {
        [DllExport]
        public static int TestExport(int left, int right)
        {
            return left + right;
        }
    }
}
3F commented 4 years ago

@pansila I think you already answered yourself.

1. Install UnmanagedExports 1.2.7 as I found it before DLLExport when searching. 3. Remove UnmanagedExports in the references.

You need to fully remove UnmanagedExports package, then try again. Please confirm it.

pansila commented 4 years ago

@3F Thanks, after deleting the directory of UnmanagedExports in the packages of my project, the issue is gone.