Why is there a difference in same DLL when adding from VS 2015 and VS 2017

时间:2017-08-30 20:51:11

标签: .net visual-studio

Why is there a difference in the DLL when I add a COM reference to my class library in Visual Studio 2015 and in Visual Studio 2017?

The reference is Microsoft this.props.dispatch

How can I keep the DLL the same as in VS 2015 when I add it to VS 2017?

VS 15

this.props.dispatch({
    type: types.ADMIN_DATA_REQUEST,
    secret: this.props.user.token
});

VS 17

function getAdminData(secret) { 
    axios.get(config.api + api.adminData, {
        params: {
           secret
        }
    });
}

The problem is this enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

由于.NET程序集在GAC中,因此当您拥有VS2017时,它将自动绑定到较新版本的dll。通常这样做是为了在平台中完成重要修复时,您的应用程序将获得这些好处。您可以覆盖发布商的政策而不是前滚,但通常不建议这样做。本文应提供您正在寻找https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions

的信息