Unable to bind ASP.NET 5 / Core 1.0 project with SonarLint - sonarlint

When using SonarLint for Visual Studio 2.1, the "Bind" option is disabled when there is only an ASP.NET 5 / Core 1.0 project (.xproj) in the solution.
Is this project type supported? If it is not yet supported, when will it be?

The project type is not supported. See also this Jira item to get an impression of the development and timeline.

Related

Using Avalonia with netstandard

I try to run my Avalonia app on .net framework. However, when I downgrade targetframework to netstandard2.0, AppBuilder becomes unavailable and I just couldn't figure out, how to fix that problem.
I couldn't find any template, that targets .net framework or netstandard. Documentation contains nothing regarding this issue. The only thing I could find is this Github issue. As I understood, AppBuilder is not supposed to be used in netstandard. Then, what is proper replacement for following code?
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToTrace()
.UseReactiveUI();
Edit:
As it was pointed out, netstandard can't be used as a target for Avalonia apps, but we can specify multiple targets. So I replaced
<TargetFramework>net7.0</TargetFramework>
with
<TargetFrameworks>net7.0;net48</TargetFrameworks>
And it worked on .NET core and .NET Framework
netstandard2.0 isn't an actual .NET framework version: it's a specification of the common API beteen .NET framework 4.6.1 and .NET core 2.0 (among others). As such netstandard2.0 only makes sense as the target framework for libraries, not applications.
If you want your app to target .NET framework then you need to use a .NET framework version as the target framework, for example net48 for .NET Framework 4.8.

How to reference .net framework 4.8 nuget package from .net standard 2.0 class library?

I'm trying to use .net framework 4.8 nuget package (which was written by our team) in my .net standard 2.0 class library.
But when I build the solution I see such kind of warning:
Warning NU1701
Package ... was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
At the same time here it is claimed that .net standard and .net framework 4.8 are compatible.
Why do I see this warning? What am I doing wrong?
Is there way to get rid of this warning?
They're compatible in the sense that you can reference netstandard projects from net48 projects, but not the other way round.
The only thing you can reference from a netstandard project is another netstandard project

SharePoint Online Integration Compatibility

My application is running on dot net 3.5 framework and i want to integrate the SharePoint online from 3.5 framework application so it is possible to integrate that ?
Because the Microsoft.SharePoint.Client Assembly is available in 4.0 on wards so is there any way to connect the sharepoint online from my application which is running in 3.5 framework can't convert application to 4.0 straight away because it's a big application and i want to implement sharepoin online with this application.
I have googled and found two possible solution as mentioned below:
Make a new project and Compile it into 4.0 with COM compatibility which does not seems an good idea because it required to add the manifest file from all the invoked function which is not feasible for me.
So i am looking for a easy solution to integrate the 4.0 dll into 3.5 without com or is there any way to use CSOM libraries into 4.0 ?
I am looking forward for forum response. thanks in advance :)

Will there be a SSRS reportviewer in ASP.NET 5 MVC 6?

I am working on upgrading an ASP.NET 4.0 WebForms app to MVC6 and cannot find a solution for displaying SSRS reports. With the absents of System.Web the Microsoft ReportViewer control no longer works. What is the best practice for displaying SSRS reports on the web in ASP.NET 5?
#Brian - ASP.NET MVC 6 is still in beta stage, its very early to plan for upgrading ASP.NET 4 web forms to MVC 6.
Please try using ASP.NET MVC 5 for upgrading web forms, it (MVC5) will be there for many years to come.
ASP.NET 5 will take good amount of time to mature, so don't hurry.
There's no direct support for the SSRS in MVC, but there's are common workaround using an iframe. Basically create a webforms project that provides a services to the SSRS reports and inject that into your view.
Have a look at https://github.com/ilich/MvcReportViewer
I haven't tested it, however its still a glorified wrapper to a webforms iframe in the end. You can find it on NuGet.
There are also paid solutions like Telerik Reports and alike.

How targeting .NET 4.0 with Mvvmcross?

I want to use Mvvmcross to make application for several platforms.
I use Profile 104 for PCL library like Mvvmcross, but this profile target .NET 4.5.
I want to target .NET 4.0 to use my application on Windows XP.
To do that, I add the xml files
MonoAndroid, Version = v1.6 +. Xml
and
VSMonoTouch, Version = v1.0 +. Xml
in the profile 143 which allows me to target. NET framework 4.0.3.
However, I have a compilation error because it can not find the ICommand interface.
This interface is not in the same library between version 4.0 and 4.5, is it why it doesn't work ?
Or should I recompile all Mvvmcross libraries with profile 143?
thanks,
This is a Portable Class Library limitation.
See the table on: http://msdn.microsoft.com/en-us/library/gg597391.aspx
Model-View-View Model (MVVM)
Only 4.5
This means that if anyone wants to use MvvmCross on earlier .Net platforms then someone has to build and maintain a non-PCL version.
Since the maintainer of Mvx (me!) has decided to only maintain PCL versions of MvvmCross, then any non-PCL support will have to be created by the community.
For WPF this shouldn't be too large or difficult a job - but it might be...
Alternatively, somebody might be able to do something funky to get the ICommand working... I've retagged this question with portable-class-library to try to lure in some of the MS experts.