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.

Build error on Avalonia project template

See original GitHub issue

I 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:

image

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:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
TonyHenriquecommented, Feb 22, 2018

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

dwpq8okwkaa9hfe

3reactions
TonyHenriquecommented, Feb 21, 2018

Hum, I did not edit the .csproj

What happened is that the template comes with:

<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>

Then after changing it to

<TargetFrameworks>netcoreapp2.0</TargetFrameworks>

It Works.

Read more comments on GitHub >

github_iconTop 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 >

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