peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.38k stars 203 forks source link

error MSB4020 #91

Closed cirolaferrara closed 7 years ago

cirolaferrara commented 7 years ago
dotnet new -i Peachpie.Templates::*
dotnet new peachpie-console
dotnet restore
dotnet run

Gives me: error MSB4020: The value "" of the "Project" attribute in element <Import> is invalid.

I have: .NET Core SDK 1.1.4 (x64)

jakubmisek commented 7 years ago

So far, I cannot reproduce the issue (checked .NET Core 1.1.0, 1.1.4, 2.0.2). Anyone else?

WORKAROUND: edit the project file (.msbuildproj) and remove the section at bottom

<!-- A temporary solution, import C# Visual Studio design time targets in order to be able to load the project in Visual Studio -->
<PropertyGroup>
    <CSharpDesignTimeTargetsPath Condition="'$(CSharpDesignTimeTargetsPath)'==''">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets</CSharpDesignTimeTargetsPath>
</PropertyGroup>
<Import Project="$(CSharpDesignTimeTargetsPath)" Condition="'$(CSharpDesignTimeTargetsPath)' != '' and Exists('$(CSharpDesignTimeTargetsPath)')" />
jakubmisek commented 7 years ago

The temporary XML section in msbuild project has been removed from all templates and samples.