Build error on Avalonia project template
See original GitHub issueI installed Avalonia ( https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.AvaloniaforVisualStudio )
On Visual Studio 2017 (Version 15.6.0 Preview 5.0)
Then created a new Project:
Then when I BUILD the solution, this error appears:
1>C:\Program Files\dotnet\sdk\2.1.100-preview-007363\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file 'C:\temp\AvaloniaApplication1\AvaloniaApplication1\obj\project.assets.json' doesn't have a target for '.NETFramework,Version=v4.6.1/win7-x86'. Ensure that restore has run and that you have included 'net461' in the TargetFrameworks for your project. You may also need to include 'win7-x86' in your project's RuntimeIdentifiers.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Avalonia project is giving me a hell of errors!!! : r/dotnet
I start VS and create new project and select avalonia mvvm app and I get bunch of errors at start and before touching...
Read more >Incorrect IntelliSense Suggestions and Error Highlighting for ...
1. Create Avalonia project (version 0.10. · 2. Install Avalonia. · 3. Add <DataGrid> template to the window. · 4. In view model...
Read more >Getting Started with Avalonia
Ready to get started with Avalonia? Follow these steps to install the templates and create your first application.
Read more >Avalonia.UI new project in Visual Studio stuck in v11- ...
When I create a new Avalonia app project, it is created in v11-Preview4, despite there is v11-Preview7 version. How I can create Avalonia...
Read more >Create a New Project
A new project will be created with the following solution folders and files: Take some time to review the files and folders that...
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
I managed to get it working. I ended running a XAML GUI (Avalonia) on Linux WSL + Windows 10
See https://twitter.com/tonyvca/status/966674120476909569
Hum, I did not edit the .csproj
What happened is that the template comes with:
Then after changing it to
It Works.