question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.DotNet.Props was not found

See original GitHub issue

Steps to reproduce

Build MusicStore sample

Expected behavior

No error

Actual behavior

C:\temp\MusicStore-dev\samples\MusicStore>dotnet build Microsoft ® Build Engine version 15.1.0.0 Copyright © Microsoft Corporation. All rights reserved.

Build started 11/11/2016 10:13:07 AM. 1>Project “C:\temp\MusicStore-dev\samples\MusicStore\MusicStore.xproj” on node 1 (Build target(s)). 1>C:\temp\MusicStore-dev\samples\MusicStore\MusicStore.xproj(7,3): error MSB4019: The imported project “C:\Program Files (x86)\dotnet\sdk\1.0.0-preview4-004071\Extensions\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props” was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. 1>Done Building Project “C:\temp\MusicStore-dev\samples\MusicStore\MusicStore.xproj” (Build target(s)) – FAILED.

Build FAILED.

   "C:\temp\MusicStore-dev\samples\MusicStore\MusicStore.xproj" (Build target) (1) ->
     C:\temp\MusicStore-dev\samples\MusicStore\MusicStore.xproj(7,3): error MSB4019: The imported project "C:\Program Files (x86)\dotnet\sdk\1.0.0-preview4-004071\Extensions\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

0 Warning(s)
1 Error(s)## Environment data

dotnet --info output: C:\temp\MusicStore-dev\samples\MusicStore>dotnet --info .NET Command Line Tools (1.0.0-preview4-004071)

Product Information: Version: 1.0.0-preview4-004071 Commit SHA-1 hash: 9855dc0088

Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x86

dotnet_error__msb4019

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:31 (5 by maintainers)

github_iconTop GitHub Comments

19reactions
livarcocccommented, Mar 15, 2017

@theShiva my guess is that you installed a new CLI (1.0.1) and you are trying to open a project without global.json pinning the version of the CLI to what you need for VS2015 (preview2). So, add a global.json to the root of your repo, with

{
  "sdk": {
    "version": "your_preview2_cli_version"
  }
}

Basically, VS2015 only works with CLI preview2. VS2017 needs at least CLI 1.0.0.

8reactions
mharasimowiczcontrolexpertcommented, Mar 20, 2017

Hi, something like that works for me:

global.json file

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-preview2-1-003177"
  }
}

My sdk directory: capture

You can download the sdk from this page: https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1-preview2.1-download.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio 2015 - Microsoft.DotNet.Props was not found
The imported project "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found.Confirm that the ...
Read more >
Run a project inside Visual studio 2019 will raise thsi error
Run a project inside Visual studio 2019 will raise thsi error :- DotNet\Microsoft.DotNet.Props" was not found.
Read more >
Build issue with Microsoft.DotNet.Props - Build/Test Issues
DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Indeed ...
Read more >
The imported project "C:\Program Files\dotnet\sdk\1.0.0-rc4 ...
0\DotNet\Microsoft.DotNet.Props" was not found or Unable to start the process. No executable found matching command "dotnet-projectmodel-server".
Read more >
Error: Could not import "$(VSToolsPath)\DotNet.Web\Microsoft ...
Api.xproj could not import "$(VSToolsPath)\DotNet.Web\Microsoft.DotNet. ... DotNet.Props" was not found. Confirm that the path in the <Import> declaration ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found