Menu
  • HOME
  • TAGS

How can I open a Visual Studio solution without loading all of its projects?

Tag: visual-studio,visual-studio-2013,xamarin,solution,suo

I have big solution in Visual Studio that has some Android, Windows Phone and iOS Xamarin projects. Unfortunately, Visual Studio hangs (for hours) when it tries to load the whole solution. It worked fine as long as I usually only loaded either the Android or the iOS project (and plug-in project), but not both at the same time.

Unfortunately, I changed it and now I can't load the solution anymore. I read that settings like these are stored in the .suo file, but I have no idea how I change it (and disable loading the Android projects for example). How can I close certain projects without doing this after the whole solution loaded?

Thank you!

Best How To :

You can open the sln file in notepad and just delete the projects you dont need. But to make sure you don't mess things up I would suggest making a backup of your sln file.

How to stop visual studio generate typescript js and js.map files while publishing

visual-studio-2013,configuration,typescript,publishing

However while publishing my project, it still generates js and js.map file foreach .ts files. You probably have different config for debug and release. Make them the same....

How to map Visual Studio shortcut keys in Github Atom

visual-studio,coffeescript,atom-editor

Open the Settings panel by pressing ctrl-, on windows cmd-, on mac and select the Keybindings tab. It will show you all the keybindings currently in use. You can also open the keybinding resolver using ctrl-. and press ctrl-k and see what keybinding it displays. To assign custom keybindings, go...

How to uninstall a program using C#? [duplicate]

c#,visual-studio,visual-studio-2012,command-line,windows-installer

You've asked with a Windows Installer tag, so if we are talking about products installed from MSI files: Attempt 1 is incorrect because Windows Installer doesn't use the uninstallstring to uninstall products (change it and see if it makes a difference), and there are better ways. 2 uses WMI, and...

An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code

c#,asp.net,visual-studio

You can't parse those string representations of double values in the drop-down directly to int like that, hence the error. Internally, it's basically calling this, and it expects an integer: Int32.Parse("29.99", NumberStyles.Integer, CultureInfo.CurrentCulture); Convert the strings to double instead, then either use them like that or cast them to an...

Searching user tasks by task.body text

c#,visual-studio-2013,vsto,outlook-addin

Why not use the user properties (TaksItem.UserPropertiers.Add)? If the user fields is added to the folder fields, you can search for that property using Items.Find/FindNext/Restrict.

how to display dates from two different tables?

c#,mysql,visual-studio,dataview

You are assigning Checklist date and Service date to the same Date property. This should work: public DateTime Date { get; set; } public DateTime ChecklistDate { get; set; } protected override void FillObject(DataRow dr) { if (dr["Date"] != DBNull.Value) Date = Convert.ToDateTime(dr["Date"]); if (dr["ChecklistDate"] != DBNull.Value) ChecklistDate = Convert.ToDateTime(dr["ChecklistDate"]);...

.gitignore File Not Working With Bonobo

git,visual-studio,github,bonobo

If they are showing up as changed (and not added), they were already in the repository before you added the .gitignore file. So you need to remove them from the repo by either a) deleting them from your local box and committing, or b) using git rm --cached on them....

How do I make program with c# to check to see if a word is a palindrome? [closed]

c#,visual-studio,cmd

A palindrome is a sequence of characters that is the same whether read forward or in in reverse. So to determine if a string is a palindrome, we can compare the string with its reverse, it is one. So how can you create a reverse of a string? If you...

Where to store an mp4 file in my project?

.net,vb.net,visual-studio,mp4

Try going Project>"Project Name" Properties>Resources>Add Resource>Add Existing File This should add the file into your resources folder. You can then access any file by going My.Resources.Name_Of_Resource...

How do I make visual studio show exceptions that any method may throw?

c#,visual-studio

You can do this by adding an <exception> tag to the methods comment: /// <summary> /// Fooes this instance. /// </summary> /// <exception cref="ArgumentNullException">Yay for exception</exception> public void Foo() { } ...

How can I add a .props file to a C# project?

azure,visual-studio-2013,azure-webjobs

From my understanding in this article it is enough that you add a new text och xml file and name it WebJobs.props. Look also at the screenshot explaining how you should edit it. Here is a different example of this file. https://github.com/davidebbo-test/WebAppWithWebJobsVS/commit/15e7579075312d620fe42a8746503ba82adf5305

finding file in root of wpf application

c#,xml,wpf,visual-studio,relative-path

First, ensure that the file is definitely copied into your output ./bin/ directory on compile: This worked perfectly for me in my WPF application: const string imagePath = @"pack://application:,,,/Test.txt"; StreamResourceInfo imageInfo = Application.GetResourceStream(new Uri(imagePath)); byte[] imageBytes = ReadFully(imageInfo.Stream); If you want to read it as binary (e.g. read an image...

Visual Studio 2013 Report RDLC with related datasets

visual-studio-2013,report,relational-database,rdlc

To group data in a report: Click the Design tab. If you do not see the Row Groups pane , right-click the design surface and click view and then click Grouping. From the Report Data pane, drag the Date field to the Row Groups pane. Place it above the row...

Use Sync Framework without Installation

c#,visual-studio,microsoft-sync-framework

You can just copy the files as Sync Fx still uses COM. If you dont want to manually install the Sync Fx separately, you can bootstrap it with your application installer.

C# SocketException was unhandled

c#,visual-studio,socketexception

Bingo.Look at this chunk of code: private void bStartServer_Click(object sender, EventArgs e) { // Called once when the thread starts Thread tcpServerRunThread = new Thread(new ThreadStart(TcpServerRun)); tcpServerRunThread.Start(); // Called again here TcpServerRun(); } The TCPServerRun() method is being called twice: once when your thread starts, and then again via the...

Visual Studios building and debugging .cpp file without main()

c++,assembly,visual-studio-2013

Your code does have a main function, which is required for it to work. As you said the debugger returned a 'missing executable' error, I'm assuming you didn't compile the code, or if so, got some errors which can be found in the output and error windows. If you're working...

Include file in solution explorer without it being a build dependency

c#,visual-studio,msbuild,intellisense

Move the code generation to BeforeCompile instead of CoreCompileDependsOn. this will keep the generation of the files from tirggering the subsequent builds. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="BeforeCompile" DependsOnTargets="GenerateCode"> </Target> <Target Name="GenerateCode" Inputs="@(Sources)" Outputs="@(Sources->'generated\%(Filename).cs')"> <!-- run executable that generates files --> </Target> </Project> If you include all of the generated...

Can I pass VisualStudio Edition name through a compiler option?

c#,visual-studio,unit-testing,vs-unit-testing-framework,compiler-options

Open the csproj in a text editor and, after the last <PropertyGroup> add: <PropertyGroup Condition=" $(VisualStudioEdition.Contains('Ultimate')) "> <DefineConstants>$(DefineConstants);ULTIMATE</DefineConstants> </PropertyGroup> note that I've written the constant in all upper-case, so you'll have to change your code to: #if ULTIMATE If you want to future-proof yourself, as suggested by @Damian: <PropertyGroup Condition="...

Change mapping option replaced with cloak option in TFS

visual-studio-2013,tfs

I recommend installing "TFS Source Control Explorer Extension" - From below link: https://visualstudiogallery.msdn.microsoft.com/af70cbb7-1e0d-4d16-bc57-cccc15370c51...

How do I display an Icon on the Taskbar but not on the form itself?

vb.net,winforms,visual-studio

I have found a workaround. If you do Me.ShowIcon = False after the form is loaded, then it will display in the taskbar, but not on the program. One way to do this is to have a timer enabled/begin as soon as form load ends, and then on tick, do...

Redirect Visual Studio to new TFS Location

visual-studio-2013,tfs

You have to connect to the new TFS from Team, Connect to Team Foundation Server menu.

Visual Studio 2013 LINK : fatal error LNK1181: cannot open input file

c++,visual-studio,opencv,visual-c++,visual-studio-2013

Remove all references to the library. Somewhere that project is pointing at the path you give above and you need to remove that. Then add the library into the executable project. Right click->add->existing item, change the type to all files, then browse to the file location. ...

How to get previous version using git and VS Express for web 2013?

git,visual-studio-2013

You can get a specific version via git checkout [commit_id]. You can undo that commit with git revert [commit_id].

OData Endpoint with .NET

c#,asp.net,visual-studio-2013,odata,web-api

Check your assembly bindings in the web.config. You might need something like this (or you might have to remove one). Ensure that any bindings are pointing to the assemblies existing in your bin folder. <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> </dependentAssembly> Also, Update NuGet packages to...

Cannot add new shared dataset to report

visual-studio-2013,reporting-services,sql-server-2008-r2,ssrs-2008-r2

The most likely reason for this error is that your stored procedure returns a table which has duplicated field names. Just double check that all the field names are unique, and it should work....

Visual Studio Assembly force-installs Target Framework

c#,.net,visual-studio-2013,.net-framework-version

The targeted .NET version is the only version that the app will depend upon by default. Visual Studio will not automatically add higher and backwards compatible releases. Do this manually by adding other .NET versions to a configuration file: On the Visual Studio menu bar: Choose Project; Add New Item;...

The name 'Thread' does not exist in the current context

c#,visual-studio-2013,namespaces

I assume this is a Portable Class Library or Windows Store/Phone project targeting Windows Runtime which does not have such a construct. An alternative and recommended way would be to use: await Task.Delay(TimeSpan.FromSeconds(2)); or for a blocking call in case you are not in an async context: Task.Delay(TimeSpan.FromSeconds(2)).Wait(); Similar issue...

devenv.exe hogs CPU when debugging

asp.net-mvc,visual-studio-2013

I didn't manage to find the source of the problem, but closing all editor windows in VS seems to make it go away. If there are further lag spikes, restarting debugging might be also a good idea. Since I didn't see this problem in a new project, it might be...

Visual Studio Ctrl + F search freezes when including a '(' character

visual-studio,visual-studio-2013

Do you have regular expression searches on? ( is a meta-character for regexes and, on its own, is an invalid regex. Visual Studio is waiting for enough input for a valid regex to search with....

Why a breakpoint jumps in my C++ code?

c++,visual-studio,visual-c++

VS behaves differently with C++ and C#. In the case of C++, the debugger will ignore lines that don't contain any actual code and will keep moving the breakpoint until it hits a line that does contain some code. A somewhat related behavior is that if you try to debug...

Can't reinstall package

visual-studio-2013,nuget

NuGet will skip reinstallation of a NuGet package if it cannot find it in the currently selected package source since the reinstall would fail leaving the NuGet package uninstalled. So it is worth checking what the currently selected package source in the Package Manager Console is since it may be...

Visual Studio 2013 C# compile with /main

c#,visual-studio-2013

You obviously want to write a ConsoleApplication. You picked WpfApplication. Copy your whole code, create a new project based on ConsoleApplication and paste your code there. And try to get rid of the gotos, it's not BASIC. You could easily make a single function for all your three uses....

How to Customize Visual Studio Setup

c#,visual-studio,setup-project

You can use a Microsoft Setup project or WIX (easily integrate with Visual Studio). Both are free. •You can do almost all of your customization in setup project by adding custom actions. •WIX (window installer xml) is the better option. You can do a complete customization from wix but it...

How to set a custom color for html angle brackets in VS 2013?

visual-studio

In Visual Studio 2013, angle brackets (< and >) are in the XML Delimiter category. This will apply to XML Syntax delimiters, including <, <?, <!, <!--, -->, ?>, <![, ]]>, > and [, ] Note that this will not change the C# files angle brackets. More info: Fonts and...

C# Referenced Namespace Hidden By Class Namespace

c#,visual-studio

Since Token2 is also a sub-namespace of Token1 you need to specify that you're looking for the "root" namespace: var frameworkClass1 = new global::Token2.Token4.Token5.Class1(); You could also alias it with a using statement: using Token5 = global::Token2.Token4.Token5; And then just reference the alias: var frameworkClass1 = new Token5.Class1(); ...

Using Try/Catch block to set file path?

visual-studio,visual-studio-2013

Your inner Try/Catch block should be inside the FileNotFoundException catch. Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim sr As IO.StreamReader Dim age As Integer Dim path As String Try sr = IO.File.OpenText("Ages.txt") age = CInt(sr.ReadLine) txtOutput.Text = "Age is " & age Catch exc As IO.FileNotFoundException...

IIS Express 8 - Max allowed length

c#,asp.net,iis,visual-studio-2013,iis-express

Let's look at the code that throws: private void ValidateRequestEntityLength() { if (!this._disableMaxRequestLength && (this.Length > this._maxRequestLength)) { if (!(this._context.WorkerRequest is IIS7WorkerRequest)) { this._context.Response.CloseConnectionAfterError(); } throw new HttpException(SR.GetString("Max_request_length_exceeded"), null, 0xbbc); } } The ctor sets those options: internal HttpBufferlessInputStream(HttpContext context, bool persistEntityBody, bool disableMaxRequestLength) { this._context = context;...

C++ Why does this work

c++,visual-studio,visual-c++,switch-statement

Apparently you have leftover input including a newline, in the input buffer of cin. That happens when you use other input operations than getline. They generally don't consume everything in the input buffer. Instead of the extra getline you can use ignore, but better, do that at the place where...

nuget security - malware installed by nuget packages?

visual-studio,nuget

NuGet packages can run arbitrary powershell scripts at install or deinstall time. In addition, they add executable code (through dll they install) to your solution, that you will execute the next time you run it (after all, that's the point of installing a package, right?). So yes, installing NuGet packages...

Exception in async task gets intercepted in Visual Studio

c#,visual-studio,exception,asynchronous

Why does the debugger stop even though the exception is inside a try/catch? Technically, the code is throwing an exception that is not caught by any of your code on the current call stack. It's caught by the (compiler-generated) async state machine and placed on the returned task. Later,...

How to use ajax to post json string to controller method?

jquery,asp.net-mvc,visual-studio-2013,asp.net-mvc-5

Your action method is expecting a string. Create a javascript object, give it the property "data" and stringify your data object to send along. Updated code: $.ajax({ type: 'post', dataType: 'json', url: 'approot\Test', data: { "json": JSON.stringify(data) }, success: function (json) { if (json) { alert('ok'); } else { alert('failed');...

HTTP Error 403.14

asp.net-mvc,visual-studio-2013

Stilly! There is a refactor bug in VS that changes the routes as well! My default route was changed to the following and I had to rename name to id and everything is working fine! routes.MapRoute( name: "Default", url: "{controller}/{action}/{name}", defaults: new { controller = "Home", action = "Index", id...

VS2013 Error: LNK2019 When trying to build ZeroMQ server

c++,visual-studio-2013,zeromq

According to the library names on zeromq.org, you are trying to link the same library twice: first with the release version, and then with the debug versions. Remove libzmq-v120-mt-gd-4_0_4.lib from your Release configuration, and remove libzmq-v120-mt-4_0_4.lib from your Debug configuration....

VS2013 Is Not Compatible With VS2015 Project Type

asp.net-mvc,visual-studio-2013,asp.net-mvc-6

This repo is a fork of next version of ASP.NET MVC. It's built to run on VS 2015, C#6 and the next runtime. Even if you could open it, you couldn't compile or run it. Visual Studio 2015 can create both vNext (5) and ASP.NET 4.5/4.6 projects. ASP.NET 5 projects...

Node.d.ts issues errors using typescript compiler, how do I fix?

node.js,visual-studio,typescript,jasmine,protractor

Typescript wants a semicolon after You are using an older version of TypeScript. Upgrade to TypeScript 1.4 or later....

How do I install the Wix extension on after a Visual Studio 2013 Update?

visual-studio-2013,wix

I in the end wasn't able to find a way to resolve this without uninstalling and installing WIX. Repair didn't resolve this issue. I had to uninstall and install WIX again to resolve this....

How to create a folder that contains the current date and time instead of name

winforms,visual-studio-2013,c++-cli

Don't hard-code the desktop directory name, it is not c:\users\desktop. .NET makes it easy: String^ path = System::IO::Path::Combine( Environment::GetFolderPath(System::Environment::SpecialFolder::Desktop), DateTime::Now.ToString("yyyyMMddhhmmss")); System::IO::Directory::CreateDirectory(path); // Write file(s) to <path> //... It is up to you to decide how fine-grained to make the directory name, if you do this at a very high rate...