Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

AngularJs 1.x upgrade issue #4048


User avatar
0
dmali created

Hi,

I'm trying to upgrade our solution to 4.5.1 .... but in VS 2015 I'm geting folowing error:

Error	CS0012	The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

Please help!


10 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dmali,

    Which version of VS 2017 do you use ? Is it greater than v15.3.3 ?

    Your problem could be similar to <a class="postlink" href="https://github.com/dotnet/standard/issues/474">https://github.com/dotnet/standard/issues/474</a>.

  • User Avatar
    0
    dmali created

    Hi,

    no, we are using VS 2015 14 Update 3.

  • User Avatar
    0
    alirizaadiyahsi created

    Hi @dmali,

    You must use VS2017 v15.3.3 or newer version.

    Check this: #3982@32380b50-9ed1-4b3f-94c0-10b0bbd06a9e

  • User Avatar
    0
    dmali created

    Hi @alirizaadiyahsi,

    thank you for your support, but we are not working with NET CORE and therefore I don't see any reason why we need to suddenly use/buy a new licenses for VS 2017.

    @ismcagdas: Any idea how to get it to work in VS 2015?

    Kind regards

  • User Avatar
    0
    aaron created
    Support Team

    For VS2015, you may try installing NuGet client 3.6 or higher but that may no longer work.

  • User Avatar
    0
    dmali created

    hi,

    I did try that, but no luck. May I ask you why are you stoped releasing Abp assemblies for 4.6.1 framework?

    kind regards

  • User Avatar
    0
    aaron created
    Support Team

    ABP targets .NET Standard 2.0, which supports .NET 4.6.1 Framework. Your issue is with Visual Studio tooling, which is not within our control.

  • User Avatar
    0
    dmali created

    Hi aaron,

    that is correct, but as it look like it is working only with VS 2017 15.3 as stated also on NET Standard 2.0 announcment page:

    The .NET Standard 2.0 specification is now complete. It is supported in .NET Core 2.0, in the .NET Framework 4.6.1 and later versions, and in Visual Studio 15.3. You can start using .NET Standard 2.0 today.

    my problem is that i'm stuck with VS 2015 for another 6 months or so and would really like to update my solution to 4.6.0.

    Is there anything you can do about this? Would it be possible to still release ABP assemblies for both "frameworks" like you did for version 2.3.0 (netstandard 1.6 and net46)?

  • User Avatar
    0
    dmali created

    Hi,

    any news about this topic?

    Kind regards

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dmali,

    Sorry for the late reply. We are not planning to release ABP for netstandard 1.6 and net46, sorry.