Rider doesn't see NetCore 3.0 - linux

I had used VS CODE before. But now I would like to try JetBrains Rider. Currently, I have only NetCore 3.0. But before I had 2.2. I had removed old NetCore and installed new one. I am trying to create new project. But Rider don't see NetCore 3.0.
I did not see ability to change NetCore SDK. My operation system is Linux Mint 18. I have only one NetCore version. And it's 3.0.
Why it's happening?

It is pretty common problem. I have solved it by specifying path to .Net Sdk manually. This is the screen of settings:
Specify path to .NET binary file. It is usually has the following path /home/<your_user>/dotnet/dotnet
Specify path to MSBuild file. For example my path is the next : /home/aleksej/dotnet/sdk/3.0.100-preview6-012264/MSBuild.dll
Save
Profit!
P.S. My operation system is Linux Mint 19.1. And version of .Net Core is not important in this case.
Update
I forgot about one important moment. If you need to change .NET version for your solution, you have to place special global.json file in the root of your solution. If you are changing .NET version for a project - put global.json on the project root path.
Example of global.json for changing .NET version:
{
"sdk": {
"version": "2.2.300"
}
}

If you want to find the location of your sdk then write the following command: dotnet --list-sdks. It has to show you 3.1.403 [/usr/share/dotnet/sdk] or similar to it. If it's not then consider it installed using the following guide Install .NET Core on Linux . Then select the dotnet file in .NET CORE CLI executable path, with it's respective MSBuild.dll .
PD: Remember to save the changes globally!!!.

what solved for me was remove the .idea folder and start again.

I have to use the Jetbrain MSE build
I have to do some set of things to work, due to the windows security I have some issue
On windows 11 do this
launch powershell as an admin
Set-ExecutionPolicy Unrestricted
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Set-ExecutionPolicy restricted
IGNORE THE ERRORS
on windows 10 do this
launch powershell as an admin}
run get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
if it doesn't work do this
run Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
run get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Then follow the instruction from here
https://rider-support.jetbrains.com/hc/en-us/articles/360006365380

Related

Unable to configure Microsoft Identity Platform while publishing .Net Core 3.1.4 project + VS 2022 + Azure

I have a .net core 3.1 project. The project has a dependency on Microsoft Identity Platform and SQL Server.
While publishing the project to Azure. I am not able to configure the Microsoft Identity Platform. It gives below Error window.
I am able to configure SQL Server dependency but not sure why it is not able to configure Identity Platform.
I am using
.Net core 3.1.4
Visual Studio Community Edition 2022
Asp.net core Identity Entity Framework 3.1.4
Any idea?
Because you didn't install the dotnet-msidentity tool.
You can try to open the cmd black window and execute this command following this document.
dotnet tool install Microsoft.dotnet-msidentity -g --version "1.0.0-preview.1.21212.1"
This command will solve your issue. But then you will meet another issue like screenshot below if your account has multiple tenant.
Someone met this issue too and raised a ticket to ms.
You may search for known issues here if you meet some other weird questions when using vs2022.
dotnet tool uninstall --global Microsoft.dotnet-msidentity
dotnet tool install Microsoft.dotnet-msidentity -g --version "1.0.2"
worked for me
if you have nuget problems make sure you habe a nuget.config in the directory you are running the command
Make sure nuGet is set as the first or default package source in Visual Studios.
Right click on the project, click on manage nuGet packages and click on the gear next to Package Source.
Verify that nuget.org is setup as the first package source.

Task failed because "LC.exe" was not found, or the .NET Framework SDK v2.0 is not installed

Anyone have the same problem with me? With visual studio 2005.
Task failed because "LC.exe" was not found, or the .NET Framework SDK v2.0 is not installed. The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK v2.0. 2.) Manually set the above registry key to the correct location. 3.) Pass the correct location into the "ToolPath" parameter of the task
I had done with below link but still don't work:
Task failed because "LC.exe" was not found after upgrade to Windows 8.1
And I downloaded the .net 2.0 sdk from https://www.microsoft.com/en-us/download/confirmation.aspx?id=1639 but can't install on windows 10
Ok I just fixed my issue by reinstalling VS2005. Thanks for viewing that

CMake - How can I pass the windows SDK version to an ExternalProject built with msbuild?

I have a CMake project which has an external dependency (Crypto++). The external project has a vcxproj file provided, so in order to add it to the build process, I added it like this:
ExternalProject_Add(CryptoPP
SOURCE_DIR ${CRYPTOPP_SRC_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND "${MSBUILD_EXE}"
"/p:OutDir=<BINARY_DIR>/bin/$<CONFIG>/"
"/p:IntDir=<BINARY_DIR>/obj/$<CONFIG>/"
"/p:Configuration=$<CONFIG>"
"/p:Platform=${CMAKE_VS_PLATFORM_NAME}"
"<SOURCE_DIR>/${CRYPTOPP_PROJECT}"
INSTALL_COMMAND "${CMAKE_COMMAND}" -E make_directory <INSTALL_DIR>/lib
COMMAND "${CMAKE_COMMAND}" -E copy <BINARY_DIR>/bin/$<CONFIG>/cryptlib${CMAKE_STATIC_LIBRARY_SUFFIX} <INSTALL_DIR>/lib
)
This worked fine until I started using Windows 10. Now I'm getting this error: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
I tried passing the SDK version from CMake, using the only related CMake variable I could find, by adding this flag to msbuild:
"/p:WindowsTargetPlatformVersion=${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}"
However, I'm still getting the same error. I tried displaying the value of the CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION variable, and it always seems empty.
Modifying the dependency vcxproj is not an option. I don't know in advance what SDK version whoever needs to build the project has installed, so that's not an option.
I can't find any way to obtain and pass the SDK version to the external project build, what am I doing wrong?
I found the problem. I forgot to set the platform toolset. I was building my CMake project with v100 so it doesn't need an SDK version. Because I didn't configure the platform toolset for the external project, it used the one set in the project which was the latest (v141) which needed an SDK version.
So adding this flag fixed my setup:
"/p:PlatformToolset=${CMAKE_VS_PLATFORM_TOOLSET}"

ASP.NET Core app build to target Core 2.1 fails on IIS 10 server where Core 2.1 is installed

I have just setup up IIS 10 on a clean Server 2016 hosted server, and installed the following packages that I have gleaned should be on the machine to allow IIS to host ASP.NET Core applications:
aspnetcore-runtime-2.1.0-win-x64.exe
dotnet-hosting-2.1.0-win.exe
dotnet-runtime-2.1.0-win-x64.exe
I have installed my app straight into the Default Web Site and replaced all files in C:\inetpub\wwwroot\ with my app files. I also did assign the web site an app pool with no managed code, so that isn't my problem.
Last time my app was built with 2.0, and I installed the latest versions of the above packages, which I'm sure was 2.0, and the only error I had was that the command dotnet that IIS uses to invoke Kestrel to run the site, was not in the PATH env. variable
Now when I try and browse to localhost on the Server 2016 machine, it gives me the following error, found in the Windows event log:
Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical
root 'C:\inetpub\wwwroot\' failed to start process with commandline
'dotnet .\QuickDrive.Mvc.dll', ErrorCode = '0x80004005 : 8000808c.
Initially I tried with the same build as before, which was 2.0, and when I got this error, I rebuilt the app to target 2.1. Nearly every search result and relevant SO answer I can find suggest a version conflict, but now there should at least be no version conflict between the runtime and hosting package on the server. Maybe there are other version conflicts I am not aware of though?
At very least I'm asking for some advice on how to get more detailed diagnostic information, even if I don't get an answer that tells me straight what config options and versions to check on Windows and on IIS.
You have to install the Core SDK for whatever version you want to target in Visual Studio. Installing the runtime alone won't do the trick. You may have the restart Visual Studio afterward to see it in the list.
Here is a link to the SDK 2.1 download (the latest as of this writing).
I solved the problem by running dotnet myWesite.dll in PowerShell, and first I found that dotnet.exe was not in the PATH environment variable, and after fixing that, running dotnet myWesite.dll again gave me a meaningful error message that an assembly was missing because it had not been included when I published the website.
I faced the same error on the dev machine in IIS Express. MVC App stopped working all of the sudden. Eventlog gave the 0x80004005 error code.
After trying multiple suggestions, the solution to debug the wired error code was to run the app in the console:
[Project bin folder]> dotnet [projectname].dll
It appeared that during the NuGet package update, the dotnet core version was accidentally updated to 2.1.4 where as the installed version was 2.1.3
[could be a bug in Nuget manager as the update was from there]
I edited the project file to reference the available version (2.1.3) and the app started to work properly.

Unable to install VSIX in VS 2012 & Windows 10

I am trying to install RXX(VSIX Isntaller) in windows 10 & VS 2012. But it gives error as below
The extension 'Razor(cshtml) pre-processor requires a version of the .NET framework that is not installed.
It is working properly in Win 7 ( .NET Framework 4.5 ). When I tried to install .NET framework 4.5 in Win 10, its no allowing to do the same.
Can anyone suggest anything for this?
Thanks
I expect the VSIX manifest to reference a specific .NET framework version and doesn't specify a range. Since .NET 4.6 replaces 4.5 it may cause these type of issues.
Extract the VSIX using your favorite extraction tool (it's a zip file), edit the manifest file by removing or updating the dependencies specified and zip it back up.
The only way to install the extension was executing the VSIXInstaller.exe as administrator and passing the VSIX file as parameters. To do that, follow this procedure:
Open a CMD window as Administrator
Go to Common, IDE folder of the VS 2015 installation. In my case:
CD C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
Execute the installer passing the VSIX file as parameter. In my case:
VSIXInstaller.exe c:\AppBuilder.vsix
Finally, the installer will start the installation!
I hope it helps you
Source

Resources