UWP 6.2.2 and System.Runtime.CompilerServices.Unsafe Incompatibility





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am fairly new to the UWP platform, and I'm having a bit of trouble trying to create my app package. The release build works fine, but when I try to make an app package for side-loading I get the following error.



Severity    Code    Description Project File    Line    Suppression State
Error Payload contains two or more files with the same destination path 'System.Runtime.CompilerServices.Unsafe.dll'. Source files:
C:Usersmicha.nugetpackagesruntime.win10-x64-aot.microsoft.netcore.universalwindowsplatform6.2.2runtimeswin10-x64-aotlibuap10.0.15138System.Runtime.CompilerServices.Unsafe.dll
C:Usersmicha.nugetpackagessystem.runtime.compilerservices.unsafe4.5.1libnetstandard2.0System.Runtime.CompilerServices.Unsafe.dll AN Solve-IT


It does seem that there are some dependencies in my project that contain the same class, but I'm not sure how to fix the problem.



In my project I have the following installed.



Microsoft.NETCore.UniversalWindowsPlatform 6.2.2
Microsoft.EntityFrameworkCore.Sqlite 2.2.0
Newtonsoft.JSON 12.0.1


I also have two supporting projects. One is a class library and the other is a migrations app. Combined they use the following.



Microsoft.EntityFrameworkCore.Tools 2.2.0
Microsoft.NETCore.App 2.1.0
NETStandard.Library 2.0.3


As I said above I can see there seems to be a file conflict in these two libraries, but I'm just not sure how to handle the issue. Any help would be greatly appreciated!



--- UPDATE ---



I followed the advice below which was to downgrade my UWP framework down to 2.1.9, but when I did that I get the following error.



Severity    Code    Description Project File    Line    Suppression State
Error One of your dependencies requires the .NET Framework, but the .NET Framework could not be found in the NuGet packages installed in this project. Please install the appropriate .NET Framework packages required by your dependency


I have verified that I have the .NET framework installed and it is referenced correctly in my project. I am able to do a local build and run on my machine. Any ideas as to what this could be?










share|improve this question































    0















    I am fairly new to the UWP platform, and I'm having a bit of trouble trying to create my app package. The release build works fine, but when I try to make an app package for side-loading I get the following error.



    Severity    Code    Description Project File    Line    Suppression State
    Error Payload contains two or more files with the same destination path 'System.Runtime.CompilerServices.Unsafe.dll'. Source files:
    C:Usersmicha.nugetpackagesruntime.win10-x64-aot.microsoft.netcore.universalwindowsplatform6.2.2runtimeswin10-x64-aotlibuap10.0.15138System.Runtime.CompilerServices.Unsafe.dll
    C:Usersmicha.nugetpackagessystem.runtime.compilerservices.unsafe4.5.1libnetstandard2.0System.Runtime.CompilerServices.Unsafe.dll AN Solve-IT


    It does seem that there are some dependencies in my project that contain the same class, but I'm not sure how to fix the problem.



    In my project I have the following installed.



    Microsoft.NETCore.UniversalWindowsPlatform 6.2.2
    Microsoft.EntityFrameworkCore.Sqlite 2.2.0
    Newtonsoft.JSON 12.0.1


    I also have two supporting projects. One is a class library and the other is a migrations app. Combined they use the following.



    Microsoft.EntityFrameworkCore.Tools 2.2.0
    Microsoft.NETCore.App 2.1.0
    NETStandard.Library 2.0.3


    As I said above I can see there seems to be a file conflict in these two libraries, but I'm just not sure how to handle the issue. Any help would be greatly appreciated!



    --- UPDATE ---



    I followed the advice below which was to downgrade my UWP framework down to 2.1.9, but when I did that I get the following error.



    Severity    Code    Description Project File    Line    Suppression State
    Error One of your dependencies requires the .NET Framework, but the .NET Framework could not be found in the NuGet packages installed in this project. Please install the appropriate .NET Framework packages required by your dependency


    I have verified that I have the .NET framework installed and it is referenced correctly in my project. I am able to do a local build and run on my machine. Any ideas as to what this could be?










    share|improve this question



























      0












      0








      0








      I am fairly new to the UWP platform, and I'm having a bit of trouble trying to create my app package. The release build works fine, but when I try to make an app package for side-loading I get the following error.



      Severity    Code    Description Project File    Line    Suppression State
      Error Payload contains two or more files with the same destination path 'System.Runtime.CompilerServices.Unsafe.dll'. Source files:
      C:Usersmicha.nugetpackagesruntime.win10-x64-aot.microsoft.netcore.universalwindowsplatform6.2.2runtimeswin10-x64-aotlibuap10.0.15138System.Runtime.CompilerServices.Unsafe.dll
      C:Usersmicha.nugetpackagessystem.runtime.compilerservices.unsafe4.5.1libnetstandard2.0System.Runtime.CompilerServices.Unsafe.dll AN Solve-IT


      It does seem that there are some dependencies in my project that contain the same class, but I'm not sure how to fix the problem.



      In my project I have the following installed.



      Microsoft.NETCore.UniversalWindowsPlatform 6.2.2
      Microsoft.EntityFrameworkCore.Sqlite 2.2.0
      Newtonsoft.JSON 12.0.1


      I also have two supporting projects. One is a class library and the other is a migrations app. Combined they use the following.



      Microsoft.EntityFrameworkCore.Tools 2.2.0
      Microsoft.NETCore.App 2.1.0
      NETStandard.Library 2.0.3


      As I said above I can see there seems to be a file conflict in these two libraries, but I'm just not sure how to handle the issue. Any help would be greatly appreciated!



      --- UPDATE ---



      I followed the advice below which was to downgrade my UWP framework down to 2.1.9, but when I did that I get the following error.



      Severity    Code    Description Project File    Line    Suppression State
      Error One of your dependencies requires the .NET Framework, but the .NET Framework could not be found in the NuGet packages installed in this project. Please install the appropriate .NET Framework packages required by your dependency


      I have verified that I have the .NET framework installed and it is referenced correctly in my project. I am able to do a local build and run on my machine. Any ideas as to what this could be?










      share|improve this question
















      I am fairly new to the UWP platform, and I'm having a bit of trouble trying to create my app package. The release build works fine, but when I try to make an app package for side-loading I get the following error.



      Severity    Code    Description Project File    Line    Suppression State
      Error Payload contains two or more files with the same destination path 'System.Runtime.CompilerServices.Unsafe.dll'. Source files:
      C:Usersmicha.nugetpackagesruntime.win10-x64-aot.microsoft.netcore.universalwindowsplatform6.2.2runtimeswin10-x64-aotlibuap10.0.15138System.Runtime.CompilerServices.Unsafe.dll
      C:Usersmicha.nugetpackagessystem.runtime.compilerservices.unsafe4.5.1libnetstandard2.0System.Runtime.CompilerServices.Unsafe.dll AN Solve-IT


      It does seem that there are some dependencies in my project that contain the same class, but I'm not sure how to fix the problem.



      In my project I have the following installed.



      Microsoft.NETCore.UniversalWindowsPlatform 6.2.2
      Microsoft.EntityFrameworkCore.Sqlite 2.2.0
      Newtonsoft.JSON 12.0.1


      I also have two supporting projects. One is a class library and the other is a migrations app. Combined they use the following.



      Microsoft.EntityFrameworkCore.Tools 2.2.0
      Microsoft.NETCore.App 2.1.0
      NETStandard.Library 2.0.3


      As I said above I can see there seems to be a file conflict in these two libraries, but I'm just not sure how to handle the issue. Any help would be greatly appreciated!



      --- UPDATE ---



      I followed the advice below which was to downgrade my UWP framework down to 2.1.9, but when I did that I get the following error.



      Severity    Code    Description Project File    Line    Suppression State
      Error One of your dependencies requires the .NET Framework, but the .NET Framework could not be found in the NuGet packages installed in this project. Please install the appropriate .NET Framework packages required by your dependency


      I have verified that I have the .NET framework installed and it is referenced correctly in my project. I am able to do a local build and run on my machine. Any ideas as to what this could be?







      c# .net uwp ef-core-2.2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 at 9:44







      miken.mkndev

















      asked Jan 3 at 10:12









      miken.mkndevmiken.mkndev

      79921034




      79921034
























          1 Answer
          1






          active

          oldest

          votes


















          2














          Downgrade your Microsoft.NETCore.UniversalWindowsPlatform package to the latest stable 6.1.9 as the current version you have was purged for having an issue with it.



          Update:
          Also downgrade other packages one-by-one if you get an error occured like the post mentioned.






          share|improve this answer


























          • It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

            – miken.mkndev
            Jan 3 at 18:02











          • Can you please see the update above. Strange things are happening now :(

            – miken.mkndev
            Jan 4 at 9:45











          • Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

            – Doe doe
            Jan 4 at 12:30











          • Yes, that is enabled and the issue still occurs.

            – miken.mkndev
            Jan 4 at 18:25






          • 1





            Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

            – miken.mkndev
            Jan 5 at 12:16












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54020167%2fuwp-6-2-2-and-system-runtime-compilerservices-unsafe-incompatibility%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Downgrade your Microsoft.NETCore.UniversalWindowsPlatform package to the latest stable 6.1.9 as the current version you have was purged for having an issue with it.



          Update:
          Also downgrade other packages one-by-one if you get an error occured like the post mentioned.






          share|improve this answer


























          • It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

            – miken.mkndev
            Jan 3 at 18:02











          • Can you please see the update above. Strange things are happening now :(

            – miken.mkndev
            Jan 4 at 9:45











          • Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

            – Doe doe
            Jan 4 at 12:30











          • Yes, that is enabled and the issue still occurs.

            – miken.mkndev
            Jan 4 at 18:25






          • 1





            Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

            – miken.mkndev
            Jan 5 at 12:16
















          2














          Downgrade your Microsoft.NETCore.UniversalWindowsPlatform package to the latest stable 6.1.9 as the current version you have was purged for having an issue with it.



          Update:
          Also downgrade other packages one-by-one if you get an error occured like the post mentioned.






          share|improve this answer


























          • It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

            – miken.mkndev
            Jan 3 at 18:02











          • Can you please see the update above. Strange things are happening now :(

            – miken.mkndev
            Jan 4 at 9:45











          • Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

            – Doe doe
            Jan 4 at 12:30











          • Yes, that is enabled and the issue still occurs.

            – miken.mkndev
            Jan 4 at 18:25






          • 1





            Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

            – miken.mkndev
            Jan 5 at 12:16














          2












          2








          2







          Downgrade your Microsoft.NETCore.UniversalWindowsPlatform package to the latest stable 6.1.9 as the current version you have was purged for having an issue with it.



          Update:
          Also downgrade other packages one-by-one if you get an error occured like the post mentioned.






          share|improve this answer















          Downgrade your Microsoft.NETCore.UniversalWindowsPlatform package to the latest stable 6.1.9 as the current version you have was purged for having an issue with it.



          Update:
          Also downgrade other packages one-by-one if you get an error occured like the post mentioned.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 6 at 11:15

























          answered Jan 3 at 15:02









          Doe doeDoe doe

          12017




          12017













          • It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

            – miken.mkndev
            Jan 3 at 18:02











          • Can you please see the update above. Strange things are happening now :(

            – miken.mkndev
            Jan 4 at 9:45











          • Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

            – Doe doe
            Jan 4 at 12:30











          • Yes, that is enabled and the issue still occurs.

            – miken.mkndev
            Jan 4 at 18:25






          • 1





            Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

            – miken.mkndev
            Jan 5 at 12:16



















          • It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

            – miken.mkndev
            Jan 3 at 18:02











          • Can you please see the update above. Strange things are happening now :(

            – miken.mkndev
            Jan 4 at 9:45











          • Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

            – Doe doe
            Jan 4 at 12:30











          • Yes, that is enabled and the issue still occurs.

            – miken.mkndev
            Jan 4 at 18:25






          • 1





            Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

            – miken.mkndev
            Jan 5 at 12:16

















          It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

          – miken.mkndev
          Jan 3 at 18:02





          It was purged? I just downloaded VS about a month ago. Do you know if it was rolled back since? I do appreciate the help and I'll give that a try and let you know if it works :)

          – miken.mkndev
          Jan 3 at 18:02













          Can you please see the update above. Strange things are happening now :(

          – miken.mkndev
          Jan 4 at 9:45





          Can you please see the update above. Strange things are happening now :(

          – miken.mkndev
          Jan 4 at 9:45













          Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

          – Doe doe
          Jan 4 at 12:30





          Does it also produce the same error if you force the solution to restore nuget packages before build by enable Allow NuGet to download missing packages during build.?

          – Doe doe
          Jan 4 at 12:30













          Yes, that is enabled and the issue still occurs.

          – miken.mkndev
          Jan 4 at 18:25





          Yes, that is enabled and the issue still occurs.

          – miken.mkndev
          Jan 4 at 18:25




          1




          1





          Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

          – miken.mkndev
          Jan 5 at 12:16





          Hey Doe, so I finally figured out the issue. Your initial step was correct but I then also had to down-grade all of my MS frameworks for EF Core and anything else that was released after the UWP 6.2.2 release. Very annoying to say the least but finally got it figured out. Thanks!

          – miken.mkndev
          Jan 5 at 12:16




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54020167%2fuwp-6-2-2-and-system-runtime-compilerservices-unsafe-incompatibility%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          'app-layout' is not a known element: how to share Component with different Modules

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          WPF add header to Image with URL pettitions [duplicate]