Evaluating ProjectLockFile of a csproj using MSBuild's Project API is returning project.lock.json
See original GitHub issueEvaluating 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:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The good thing is, we have a perfect new name for it:
ProjectAssetsFile
, since the file is now namedproject.assets.json
.Yup, sorry I missed this issue.
I’ve renamed the property to
$(ProjectAssetsFile)
in #239.