Is there a way to view the errors associated with loading a project file in Rider? - rider

We have a large (466 project) visual studio solution. When using project rider, one of the projects doesn't fully load, and the solution explorer shows (with errors) after the project name. Is there anywhere in Rider to view said errors?

You have to open "Log" tool window:
Also you can run Rider in internal mode in execute "Reload project and show logs" context action from Solution Explorer. It that case Rider will reload a project, collect all information from MsBuild and show log file in editor.

Related

How can I stop Rider from showing the .sln file or .csproj files when I select the solution or project in Rider's Explorer?

In Rider, when I select the solution or a project in its Explorer view, it automatically opens the .sln or .csproj file in the editor. While I sometimes want to look or edit .csproj files, that's the exception rather than the norm.
Can I disable this "feature" of Rider?
You can disable Autoscroll to source in the solution explorer settings (under the gear icon or via solution explorer toolbar).
We have a feature request to customize autoscroll behavior, feel free to track the status:
https://youtrack.jetbrains.com/issue/RIDER-17295
I hope I will find time and fix it in 2019.2 release cycle.

How do I compile vb code to exe?

I have some vb code that is structured like this:
./AssemblyInfo.vb
./WindowsApplication1/AppUtils.vb
./WindowsApplication1/Form1.vb
./WindowsApplication1.Form1.resx
./WindowsApplication1.My/MyApplication.vb
./WindowsApplication1.My/MyComputer.vb
./WindowsApplication1.My/MyProject.vb
./WindowsApplication1.My/MySettings.vb
./WindowsApplication1.My/MySettingsProperty.vb
./WindowsApplication1.My.Resources/Resources.vb
./WindowsApplication1.Resources.resx
./WindowsApplication1.vbproj
I have tried several times trying to create an empty solution and then import the .vb and the .vbproj but I can not stumble on the right combination to get it to expose the build button on the menu so we can build it.
I am not a windows person so googling is difficult because the terminology is difficult to understand: Example: I use the New Project button to create a solution; that is confusing.
In short, I am hoping to get instructions that will cover:
A) Creating a new solution,
B) Importing the code listed above into the solution, and
C) Compiling the code into an .exe.
BTW: I am using Visual Studio 2008.
If you give me you best guess I will edit your answer as I try it and figure out more precise instructions.
[EDIT] When I double click on the .vbproj file on windows explorer visual studio opens and the .vbproj file is displayed as XML. No build button is shown.
[EDIT] When I do File -> Open Project... .vbproj is not listed as a supported extension so there is no way to load the project from that menu item. That menu items does not have a *.* all source option. The .vbproj file has an icon that indicates that windows knows what it is: "Visual Basic Project file". This code is the result of a decompiling an .exe of the original project where the source was lost.
[EDIT] I just followed Joel's advice, but I used VS2005 rather than VS2008 and it was able to find the .vbproj file. Does that make sense? Is there something wrong with my VS2008 that makes it not open .vbproj files or is that to be expected?
[EDIT] The version of VS that CANNOT see the .vbproj is VS2008 9.0.30729.4462. The version of VS that CAN see the .vbproj is VS2005 8.0.50727.762. By "see" I mean when I follow Joel's instructions of using File->Open Project VS will recognize the .vbproj file as something it can open.
When I double click on the .vbproj file on windows explorer visual studio opens and the .vbproj file is displayed as XML
Something is broken with file associations on your Windows system.
You can open Visual Studio first and choose "Open Project/Solution" inside Visual Studio. Doing this will makes sure Visual Studio treats it as a project file, rather than just an XML file, and will allow you to attempt to build the project.
BTW, recent versions of Visual Studio are free. You might be able to fix this by updating to a more recent version.

how to open already Implemented asp.net mvc solution into my system?

unable to open Implemented solution into my system by using vs2013 and .net framework is 452, when i am trying to open solution First i get bellow dialogue box about TFS:-
Team Foundation Server version Control : The solution you are opening bound to source control on the following TeamFoundationServer http://tfs:8080/tfs/default connection. would you like to connect this server to try to enable source control integration? (yes/ no) , But i'm not using TFS here, then i clicked on No button then
Again I got one dialogue box with source control with in this dialogue box message like"The solution appears to be under source control, but its binding information cannot be found. Because it is not possible to recover this missing information automatically, the projects whose bindings are missing will be treated as not under source control." (Ok and help) i clicked on ok. then solution opened files with message load failed. ex:- In solution explorer projectName(load failed)
You can ignore the messages about the solution/project being under source control. That is not causing the project not to load.
You likely don't have some required Visual Studio plugin to open that project. The Output window should have more details as to why the project couldn't load. Typically this is because you don't have an older version of MVC installed.

How to resolve errors with namespaces and references?

I just added an existing MVC project to VS 2012 that i downloaded from Codeplex. The problem is when i'm trying to build or run the project i get a lot of errors that VS can not find references and namespaces. If i open a new MVC project then i'm not getting this errors and everything runs fine. So it only occurs when i try to open an existing project.
Can someone help me with this please?
From the VS 2012 menu select Tools->Library Package Manager->Package Manager Settings. A window will appear. Check the checkbox labeled "Allow NuGet to download missing packages during build" under the Package Manager->General heading. Click the OK button to apply the setting.
Next in the Solution Explorer right-click the Solution node and select Enable NuGet Package Restore. Perform a Clean Solution and then a Build Solution. A .nuget folder should be downloaded into your solution and all compile errors related to missing references should be resolved.
This is what worked for me.

How do I install DotNetZip?

As I am pretty new to Visual Studio, this question may sound kinda dumb:
How do I install DotNetZip library? I am using Visual Studio Express 2012 for Windows Desktop.
There is no setup for DotNetZip.
Simply download the package from its site, decompress the library somewhere in your disk and set the reference from your project to the release folder appropriate for your project type. Remember to distribute the DLL with your application.
Another simple way would be to use nuget extension to install the library.
There are many ways to add DotNetZip file in your project. I have mention only two ways below:
Way 1:
1. In Visual Studio go to- Tools->NuGet Package Manager -> Package Manager Console
2. Select your project from Default Project drop-down in Package Manager Console.
3. Type Install-Package DotNetZip and press enter.
Automatically the package will be included in your project.
Note: Sometime it does not work as expected.
Way 2:
1. In Solution Explorer go to your Project, then References folder.
2. Right click on References folder -> Manage NuGet Packages.
3. On the pop up window select Online from left menu.
4. Type DotNetZip on Seach text box.
5. From loaded list click Install button.
Manage NugGet Package PopUp window