Using NuGet in Rider without Visual Studio - c#

I am using JetBrains Rider without having Visual Studio installed.
I have installed Visual Studio Build Tools to compile my code.
The NuGet package manager in Rider still doesn't seem to work.
Is there any way to fix that without installing Visual Studio itself?

Please, check your NuGet sources on "Sources" tab in NuGet tool window. Maybe you have disabled nuget.org feed. On "Sources" you can find [Effective NuGet.Config] option it is current state your feeds for your current project.

Related

The builds tools v143 not found

I am trying to build a project and I get this error:
error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 build tools, please install v143 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
I have visual studio 2019 installed and my project has specific things that only works on 2019, so I can not update this to 2022.
Do you know how can I solve this

How to install a VS plugin in Rider?

I am trying to switch from Visual Studio to Rider. For that, I need Rider to be able to import a third-party SDK (ArcGIS Pro SKD from Esri). This is available in the Visual Studio Marketplace but not in Rider. I also have a vsix installer package for offline installation. There is no ArcGIS plugins in the Rider marketplace, and if installing it looks like Rider wants it in some packaged form. The SDK installation contains all sorts of librarys and templates. If i can't install them, it basically renders Rider a useless tool for me.
What are my options here? I am basically assuming that a VS plugin should work in Rider. Is this Assumption flawed?
Esri only supports VS 2017 and 2019.
https://github.com/Esri/arcgis-pro-sdk/wiki#requirements
You cannot use a .vsix installer with rider so you are out of luck with regard to official channels. You could try creating your own build target in Rider following this guide.
You want your Rider build target to point to
"C:\Program Files (x86)\MSBuild\Esri\ESRI.ArcGIS.AddIns.11.targets"
or whatever the equivalent is for the version of the Esri SDK you are using.
Good luck.

uwp project not able to build on Visual Studio 2017 15.8

Even a blanc uwp project is not able to build on visual studio 2017 15.8. Two minor versions have been released since 15.8.1 and 15.8.2 since than but they show the same problem.
Behavior : when you just try to restore nuget packages or build the project, the Build windows shows no output, i.e : it is black as if no progress is happening in build, and it remains like this for infinite amount of time, until you cancel the build, then it says "The Build has been canceled".
The other way is to trace your code to git and then you should close the VisualStudio and use git bash input the code.
git clean -xdf
This code can clean all of your temp files and then you can use VisualStudio to rebuild.
You can also use the new VisualStudio 2017 project to build your UWP code.
The new VisualStudio 2017 project is Microsoft.NET.Sdk that can use nuget in your nuget folder and it needs do not copy nuget to the local folder.
See How to: Reference an MSBuild Project SDK - Visual Studio | Microsoft Docs
Old csproj to new csproj: Visual Studio 2017 upgrade guide
I fixed it with following steps:
delete obj and bin folders from the project.
Restart visual studio
Clean Solution.
Rebuild.

vs_buildtools.exe missing from Visual Studio Build Tools 2017

I installed the Visual Studio Build Tools 2017 using the link (at bottom under Other Tools and Frameworks) installing both workloads: Visual C++ build tools and Web development build tools. I kept the default folder.
Based on quite a few articles, such as Microsoft Web Application Targets is Missing, I expected to see vs_buildtools.exe in the folder: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin folder, but no. I see MSBuild.exe, as you can see from this screenshot.
Here is a screenshot of the installer.
Really, there are quite a few articles saying the exact same thing: 1, 2, to name only 2.
How do I get vs_buildtools.exe?
Apparently the only way to solve my Microsoft induced Web Application Targets missing problem, as it is no longer in 15.0 is to use this executable and run the vs_buildtools.exe --add Microsoft.VisualStudio.Workload.WebBuildTools as the answer specifies. I am also annoyed now that something that should be there is not. Did Microsoft change something in a newer revision of the Build Tools?
How do I get vs_buildtools.exe?
You have already got the vs_buildtools.exe.
I installed the Visual Studio Build Tools 2017 using the link (at bottom under Other Tools and Frameworks) installing both workloads
You will notice that the installed file name is vs_buildtools__339506979.1501125082.exe, which include the version info in the name. You can rename it to vs_buildtools.exe, that is what you want.
Update for vs_buildtools.exe:
After use the command:
vs_buildtools.exe --add Microsoft.VisualStudio.Workload.WebBuildTools
The WebBuildTools will be installed at:
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications
Besides, be aware that the comment under the answer:
If you already have downloaded the "Build Tools for Visual Studio
2017" installer
(visualstudio.com/thank-you-downloading-visual-studio/…), then you can
launch that installer, hit Modify and tick the "Web development build
tasks" workload module checkbox. Then click the Modify button and let
the installer finish.

Bulid SQLite-Net Extensions in visual studio professional 2013 but not successful

I am new to windows app and I am going to build the sqlite-net extension project to .dll file in order to make the models have the relationship attribute of one-to-many, one-to-one, many-to-many.
Link: https://bitbucket.org/twincoders/sqlite-net-extensions
This is the info that it shows when I open the project in visual studio 2013.
Unsupported
This version of Visual Studio is unable to open the
following projects. The project types may not be installed or this
version of Visual Studio may not support them. For more information
on enabling these project types or otherwise migrating your assets,
please see the details in the "Migration Report" displayed after
clicking OK.
- IntegrationTests.Touch-MvvmCross, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\IntegrationTests.Touch\IntegrationTests.Touch-MvvmCross.csproj"
- IntegrationTests.Touch-PCL, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\IntegrationTests.Touch\IntegrationTests.Touch-PCL.csproj"
No changes required These projects can be opened in Visual Studio
2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing
them.
- Tests, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\Tests\Tests.csproj"
- MvvmCross, "MvvmCross"
- SQLiteNetExtensions-MvvmCross, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\SQLiteNetExtensions\SQLiteNetExtensions-MvvmCross.csproj"
- SQLiteNetExtensions-PCL, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\SQLiteNetExtensions\SQLiteNetExtensions-PCL.csproj"
- SQLiteNetExtensions, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\SQLiteNetExtensions.sln"
I try to build it and it shows some errors. So I right click the project and download the missing packages. When I try to build it again, it shows these errors:
Does anyone successfully bulid it to .dll file or anyone can fix the problems like these?
Many Thanks!
The Integration test projects are MonoTouch projects, that won't open in Visual Studio unless you have Xamarin Business license installed in your PC.
However, the SQLite-Net Extensions project is a standard PCL project and you will be able to compile it from Visual Studio without Xamarin. The problem that you are describing is probably related to not having the SQLite-Net dependency downloaded.
Make sure that you have NuGet Package Manager plugin installed and restore NuGet packages for the project to restore the dependencies and it should work.
You can also download the pre-compiled DLL from the Download page in the project page.
I solved it with changing the build platform. Thx guys!

Categories