Error installing MahApps.Metro "trying to install this package into a project that targets '.NETFramework,Version=v3.5'" - wpf

I'm trying to install MahApps.Metro http://mahapps.com/MahApps.Metro/ on my Visual Basic .NetFramework 3.5 project, but i have an error
Could not install package 'MahApps.Metro 0.10.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I don't understand i already huild on .NetFramework 3.5 .. how can i solve this?

It seems this library requires .NET 4+. Upgrade to a higher .NET version (4.0 or 4.5) and it should work.

Related

Quickstart sample code - NuGet dependencies are broken

I am new to IndentityServer and am trying to following the document to setup the Quickstart VS.Net solution on my Windows 10 desktop. After following instructions downloading and installing source code and opening up the solution in VS.Net 2017, I noticed that both NuGet dependencies - IdentityServer4 (4.0.0) and Serilog.AspNetCore (3.2.0) - are broken. Compiling the solution returns with an error: "NETSDK1045 The current .NET SDK does not support targeting .NET Core 3.1. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.1.". I also tried installing NuGet packages for those 2 components but it made no difference.
Could someone show me what I am missing here?
Thanks in advance!
IdentityServer4 v4.00 requires.NET Core 3.1, and because of that you need to use the latest Visual Studio 2019 and install the latest 3.1 SDKs.

Npgsql Entity Framework Core and version 1.1.2 of Entity Framework Core

Newbie at C# and Visual studio so please be kind :)
At this site
http://www.npgsql.org/efcore/migration/1.1.html
it says that Version 1.1.0 of the Npgsql Entity Framework Core works with version 1.1.0 of Entity Framework Core.
But when I pick Npgsql Entity Framework Core in Microsoft Visual studio (handle nuget packages) it says that a dependency is
Microsoft.EntityFrameworkCore (>= 1.1.0)
So should it work with 1.1.2 of Entity Framework Core? I do not get it to work at all and I just would like to know if anybody here use it together with 1.1.2 or if it's just not meant to be?
Are you getting an error message?
If you are receiving the following when you attempt to install the Nuget package, you need to ensure you are using Visual Studio 2017 15.3.0 or newer and .net Core.
Error: Could not install package Npgsql.EntityFrameworkCore You are
trying to install this package into a project that targets
'.NETFramework,Version=v4.5.2', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author.
I have found that to use Entity Framework Core, you have to use .Net Core, which requires that you use Visual Studio 2017 15.3.0 or newer.

Entity framework is not supported in ASP.net core -Visual studio 2015

I am working with asp.net core- Visual studio 2015.While accessing my sql database the following error occurs. "Please add the Entity.framework.SqlServerCompact NuGet package to the project". Please let me know how to resolve this issue. Thanks in advance.
Well with ASP.net Core everything is optional and as Nuget packages which means you have to bring them in your project if you want to use them.
If you want to add any Nuget package to your project you just need to open your project json file and add this line into dependencies:
Microsoft.EntityFrameworkCore.SqlServer
Or run npm install in your project directory:
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Then locate your tools section in your project json and add this into it:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview3-final"
If you had any problem with the version see if using this version is helping:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview2-final"
Reason is this is a known issue you can find here:
https://github.com/dotnet/cli/issues/3742
Check the version in case has changed. For a more detailed instructions look here:
https://learn.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db

Is it possible to use WinRT XAML Toolkit with WPF?

I try to install using Visual Studio Package Manager Console and got this error:
Install failed. Rolling back... Install-Package : Could not install
package 'WinRTXamlToolkit.Controls.Gauge 1.6.1.3'. You are trying to
install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author. At line:1
char:1
+ Install-Package WinRTXamlToolkit.Controls.Gau
Not as a NuGet package, I think you'd need a WPF Toolkit (of some sort).
WinRT XAML Toolkit is based on CoreCLR, not on the full .NET 4.5.
You can use the source code with very minor modifications though (mostly in namespaces). It depends on which part of the toolkit you need.
Check out the source at https://github.com/xyzzer/WinRTXamlToolkit

how to create ClickOnce type setup in Visual Studio

Please tell me how to Deploy application, which installs all it's dependencies like .net framework, MSSQL, etc. itself.
I have added all the dependencies in my setup Project, but when I install my setup it show message like .net Framework 4.0 is not installed. Download it from Microsoft's Website and then Install
It's not installing dependency which is in setup.

Resources