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.

Evaluating ProjectLockFile of a csproj using MSBuild's Project API is returning project.lock.json

See original GitHub issue

Evaluating ProjectLockFile of a csproj using MSBuild’s Project API is returning project.lock.json instead of the full path to project.assets.json.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp1.0</TargetFrameworks>
    <OutputPath>bin\$(Configuration)</OutputPath>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="**\*.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NETCore.App">
      <Version>1.0.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.NETCore.Sdk">
      <Version>1.0.0-alpha-20160930-1</Version>
    </PackageReference>
  </ItemGroup>

  <Import Project="$(MSBuildExtensionsPath)\Microsoft.CSharp.targets" />
</Project>

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
eerhardtcommented, Oct 4, 2016

The good thing is, we have a perfect new name for it: ProjectAssetsFile, since the file is now named project.assets.json.

0reactions
eerhardtcommented, Oct 12, 2016

Yup, sorry I missed this issue.

I’ve renamed the property to $(ProjectAssetsFile) in #239.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is project.lock.json?
During the package restore process ( dotnet restore ), NuGet has to analyze the dependencies in your project, walk their dependency graphs, and ......
Read more >
Enable repeatable package restores using a lock file
To enable the use of lock file with NuGet, set the MSBuild property RestorePackagesWithLockFile in your project file:
Read more >
.NET SDK Support
The dotnet clean command cleans the output of the previous build. It's implemented as an MSBuild target, so the project is evaluated when...
Read more >
project.json File Reference for NuGet
json file maintains a list of packages used in a project, known as a package management format. It supersedes packages.config but is in...
Read more >
out.txt
Prepare to import project extensions which usually come from packages. ... (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Imports\Microsoft.
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