2020IP / TwentyTwenty.Storage

A cross-cloud storage abstraction
Other
100 stars 26 forks source link

Error attempting to run DNX design time process #7

Closed sohaibjaved44 closed 7 years ago

sohaibjaved44 commented 7 years ago

Hi, I have just downloaded and opened in visual studio 2015, it started throwing this error. image

I have tried it with VS 2013 but its incompatiable with that.

So I opened new console application in VS 2015 then I installed nuget packages in the same order as below install-package TwentyTwenty.Storage install-package TwentyTwenty.Storage.Azure install-package TwentyTwenty.Storage.Local

All worked fine, except Local storage, TwentyTwenty.Storage.Local when used in code exactly at this line IStorageProvider provider = new LocalStorageProvider(@"E:\projectA"); started throw System.TypeLoadException ,

I'm sure about this line because there is no other line of code there.

It again works if I uninstall TwentyTwenty.Storage.Local nuget package or I remove this line of code IStorageProvider provider = new LocalStorageProvider(@"E:\projectA");

jarroda commented 7 years ago

Make sure you have the newest dotnet core bits installed. The DNX related language in that error indicates to me you have out-of-date stuff installed.
https://www.microsoft.com/net/download/core Install the visual studio tooling in addition to the SDK.

sohaibjaved44 commented 7 years ago

Great thanks let me update installed stuff.

sohaibjaved44 commented 7 years ago

Hi I did exactly what you suggested, You were right my stuff was old so I updated VS 2015 then installed sdk and tooling as well, but still its throwing TypeLoadException.

I have latest nuget installed. and in my visual studio I have only image

these two items to be updated. As AzureStorageProvider is already working so it should not be the reason

image

sohaibjaved44 commented 7 years ago

Hey are you fixing this issue? As its coming up in the latest release only

jarroda commented 7 years ago

Try again with the new 2.0.0 packages I just pushed.

sohaibjaved44 commented 7 years ago

Its working fine now with the latest release. Thanks.