[GH-ISSUE #15] Soluton errors #15

Open
opened 2026-02-26 01:35:46 +03:00 by kerem · 1 comment
Owner

Originally created by @sylvainonweb on GitHub (Apr 1, 2020).
Original GitHub issue: https://github.com/junian/Standard.Licensing/issues/15

Hi,

I retrieve the solution and try to compile it but I encounter the following errors :
1)

MSB4019	The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets" is correct, and that the file exists on disk.	Standard.Licensing	C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.targets	37	

=> I had to change the TargetFramework from this to this but don't think it's the right solution

    Before : <TargetFrameworks>netstandard2.0;netstandard1.3;netstandard1.0;net45;net40;portable-net45+win8+wpa81+wp8;portable-net403+sl50+win8+wp8;</TargetFrameworks>-->
    After :: <TargetFrameworks>netstandard2.0;netstandard1.3;netstandard1.0;net45;net40;</TargetFrameworks>
  1. The Standard.Licensing.Tests project wasn't in the solution.
    => I add it and add the following nuget packages : System.Xml.Linq, System.Xml.ReaderWriter, NUnit

  2. After that, the Standard.Licensing.Tests project compile but no test is runned

Is there a chance you can help me on these points?

Originally created by @sylvainonweb on GitHub (Apr 1, 2020). Original GitHub issue: https://github.com/junian/Standard.Licensing/issues/15 Hi, I retrieve the solution and try to compile it but I encounter the following errors : 1) ``` MSB4019 The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets" is correct, and that the file exists on disk. Standard.Licensing C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.targets 37 ``` => I had to change the TargetFramework from this to this but don't think it's the right solution ``` Before : <TargetFrameworks>netstandard2.0;netstandard1.3;netstandard1.0;net45;net40;portable-net45+win8+wpa81+wp8;portable-net403+sl50+win8+wp8;</TargetFrameworks>--> After :: <TargetFrameworks>netstandard2.0;netstandard1.3;netstandard1.0;net45;net40;</TargetFrameworks> ``` 2) The Standard.Licensing.Tests project wasn't in the solution. => I add it and add the following nuget packages : ```System.Xml.Linq, System.Xml.ReaderWriter, NUnit``` 3) After that, the Standard.Licensing.Tests project compile but no test is runned Is there a chance you can help me on these points?
Author
Owner

@ConnerPhillis commented on GitHub (May 2, 2020):

Not the author, and only wrote a little code for a PR a while ago.

  1. you might not have the mobile toolkit installed for visual studio, you can download it with the installer. I do have it but I still never got the thing to compile.
  2. (&3) the reason it isn't referenced and isn't running tests is because there aren't actually any tests written against the library. Maybe it was a to do item from a while ago that never got taken care of.
<!-- gh-comment-id:622975653 --> @ConnerPhillis commented on GitHub (May 2, 2020): Not the author, and only wrote a little code for a PR a while ago. 1) you might not have the mobile toolkit installed for visual studio, you can download it with the installer. I do have it but I still never got the thing to compile. 2) (&3) the reason it isn't referenced and isn't running tests is because there aren't actually any tests written against the library. Maybe it was a to do item from a while ago that never got taken care of.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Standard.Licensing#15
No description provided.