Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

Is it possible to rename solutions and projects?

$
0
0
Our work flow is to have one major, basic solution in TFS. From that we branch the project and start something new for a new application, based upon the base solution/project. What happens then is when we're in Visual Studio to open a project, we see lots of solutions in the Recently Opened list all named the same. Can we rename the solutions and main projects? If so, how? What I mean is, is it something as simple as just renaming the solution and project, or is it more involved?

Rod


Can't attach to Chrome for JS debugging

$
0
0

Hi,

VS 2015 Update 3, tried to attach to my local Chrome instance (ran with --remote-debugging-port=9222) in VS 2015 - got this message:

What I'm doing wrong? What file does it complain about? OS - Win2008R2 x64, I'm a local admin.

installation of emulators

$
0
0

Microsoft Emulator - Windows 10.0.14393.0  did not complete successfully

Error occur while installing , I don't know what to do

Visual Studio Enterprise with MSDN subscription

$
0
0
I have got a Visual Studio Enterprise with MSDN subscription. I'm wanting to download Visual studio Enterprise 2012 but couldn't find it. Can anyone help me with a link or where can i find that? 

System.Net.Http missing from "Extensions" in the Reference Manager in fresh VS2015.3 install

$
0
0

I have an old box with VS2015 Update 1 on it and I'm trying to setup a new box. The new box has a fresh install of VS2015 Update 3. When I try to compile my projects I get the following exception...

<snip>warning MSB3268: The primary reference "<MyAssembly>" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "<MyAssembly>" or retarget your application to a framework version which contains"System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

What I'm noticing that's weird is that on my old machine (and other devs' machines that are working fine) if you try to add a reference to a project and go to "Assemblies > Extensions" in the "Reference Manager" window, the System.Net.Http reference is there. On the new box, however, that assembly is not present. On the new box the items in "Extensions" is a *lot* shorter than on my old box.

Any assistance in this is greatly appreciated.

Limit with SQL Parameters

$
0
0

Hi! I'm developing an application working with an SQL Database and I have a DataGridView where I can see the results of what I typed in certain TextBoxes. But I have an issue: If I have more than eleven parameters in the SQL Query, my DataGridView returns no results. How can I solve this?? I have all the "WHERE FULL_Name Like '%' + @FULL_NAME + '%'), etc, etc... but I cannot have more than eleven parameters, and if I have it, no result will return to my DataGridView...

Start debug displays localhost -/ directory listing instead of selected page

$
0
0

I'm using visual studio 2015 community edition blend on a windows 10 machine. I have a project for which I have the propertiespage/web/startaction set to current page. When I select the aspx item I want to debug and start debug the debugger displays the the localhost -/ directory listing instead of loading the page I want. If I select on of the items from the directory listing that item is loaded into debug.

If I specify a page in the project as being the start page and run debug that page is loaded correctly.

Can someone kindly explain what I need to do to get the debugger to load my current page instead of displaying the directory listing?

Thanks tonnes for any help, Roscoe

Never ending "Deleting working directory" message in Help Viewer 2.2.

$
0
0
Hi.

Last night I tried to download Visual C++ books for offline use through Microsoft Help Viewer 2.2. The file was almost big and it was late at night, so I cancelled the process.

Today, when I went back to Microsoft Help Viewer, I see a message at the left-bottom of the screen - after "Update started" message - that says: "21 books returned from services.mtps.microsoft [dot] com / ServiceAPI / catalogs / dev14 / en-us".

There's also another message at the right-bottom of the screen with a progress bar that says "Deleting working directory".

It seems to be a never ending progress bar. When I click the progress bar to cancel it, left-bottom message changes to "Canceling after current step is complete." But again, it never completes the step.

What's the problem? How can I solve this?

Thank you.

how to create below project type in visual studio 2015

$
0
0

How could we create below project in visual studio 2015 indicated as below red box?

p.s. the solution below i found is cloned from github: 

https://github.com/MahApps/MahApps.Metro

screenshot


Roahn Luo [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Always have to repeat "Start Automatic outlining" in the Edit Outlining menu in Visual Studio 2015 Enterprise

$
0
0
In each code page, whose extension is either .h or .cpp, I see neither collapsible boxes nor expandible boxes. I have to go to Edit => Outlining menu and click "Start Automatic outlining" to see these collapsible and expandible boxes, but in a later time, they disappear and I have to do exactly the same thing to see themover and over again. I got tired of this. I want "Start Automatic outlining"only once and then see collapsible and expandible boxes everywhereforever, but not temporarily. What exactly should I do to achieve this goal?

Web Publish Crashes Wifi for everyone

$
0
0

This is a weird one, IMO.  I normally can find any answer I need by searching but this one is stumping me. 

I am developing a MVC web app and publishing it to azure.  Any time I publish the app using the web-publish it gets about 500kb in to the upload, then everything stops as far as internet traffic.  About 30 seconds later the wifi on my router crashes and everyone attached to it looses their internet connection.  The only fix is to power down the router.  When I do the same action on my laptop it publishes fine with no router issues, both are over wifi.  I can get it to publish using the ftp publish but I find that incredibly slow.

The router is a TP-Link C7, all firmware is up to date.  I am using VS2015.  I am on xplornet Satellite internet.  Windows 10 anniversary.  D link usb wifi on my desktop with the publish issues.  I have not yet tried to complete this action with a wired connection to the router.

Thanks

Mike

<mytubeelement data="{"bundle":{"label_delimitor":":","percentage":"%","smart_buffer":"Smart Buffer","start_playing_when_buffered":"Start playing when buffered","sound":"Sound","desktop_notification":"Desktop Notification","continuation_on_next_line":"-","loop":"Loop","only_notify":"Only Notify","estimated_time":"Estimated Time","global_preferences":"Global Preferences","no_notification_supported_on_your_browser":"No notification style supported on your browser version","video_buffered":"Video Buffered","buffered":"Buffered","hyphen":"-","buffered_message":"The video has been buffered as requested and is ready to play.","not_supported":"Not Supported","on":"On","off":"Off","click_to_enable_for_this_site":"Click to enable for this site","desktop_notification_denied":"You have denied permission for desktop notification for this site","notification_status_delimitor":";","error":"Error","adblock_interferance_message":"Adblock (or similar extension) is known to interfere with SmartVideo. Please add this url to adblock whitelist.","calculating":"Calculating","waiting":"Waiting","will_start_buffering_when_initialized":"Will start buffering when initialized","will_start_playing_when_initialized":"Will start playing when initialized","completed":"Completed","buffering_stalled":"Buffering is stalled. Will stop.","stopped":"Stopped","hr":"Hr","min":"Min","sec":"Sec","any_moment":"Any Moment","popup_donate_to":"Donate to","extension_id":null},"prefs":{"desktopNotification":true,"soundNotification":true,"logLevel":0,"enable":true,"loop":false,"hidePopup":false,"autoPlay":false,"autoBuffer":false,"autoPlayOnBuffer":false,"autoPlayOnBufferPercentage":42,"autoPlayOnSmartBuffer":true,"quality":"default","fshd":false,"onlyNotification":false,"enableFullScreen":true,"saveBandwidth":false,"hideAnnotations":false,"turnOffPagedBuffering":false}}" event="preferencesUpdated" id="myTubeRelayElementToPage"></mytubeelement><mytubeelement data="{"loadBundle":true}" event="relayPrefs" id="myTubeRelayElementToTab"></mytubeelement>

iostream not found. Visual Studio 2015

$
0
0
I downloaded VS 2015 for class so that I could work on my code at home. I downloaded with out any problems, but when I transferred code and tried to run the code it said <iostream> not found. What do I do so that I can use iostream? Any suggestions?

Visual Studio 2017 Disable Start Page

$
0
0

Hi all,

Trying out VS2017RC and after setting 'Show empty environment' and unchecking 'Download content every:' in Tools:Options:Environment:Startup

It still displays the Start Page upon Close Solution.

Is there a way to disable the Start Page completely ...

Thank you
-Enjoy
fh : )_~

I Used to work in VS 2013. Now I installed 2015 community. But I exeprience a problem

$
0
0

When I run a app (either as .exe - published- or under the debugger) the Form (form1) goes blank and whatever was painted on it is gone and doesn't come back. What would the reason be?

(I now work from a laptop instead of a desktop.)


Peter Goossens

CrystalDecisions references not available on new computer

$
0
0
Hello,

I just transferred some source code from one computer to another. There are some references in the solution to CrystalDecisions.Enterprise.Framework and CrystalDecisions.Enterprise.InfoStore. However, these don't seem to be available on the new computer. I tried installing these in the Package Manager in Visual Studio 2013 but that doesn't seem to make them available.

How can I install these through the package manager, and when I do, where would they be available on my hard drive?

VS Designer Bug with XAML Popup?

$
0
0

I have a program written in C#, UWP, and with the target build being 10586.  Here is a picture of the design window with the xaml popup in the upper center of the app window.

When I update to the target version of 14393 (Anniversary Ed.) the popup no longer shows up there.  The outline is still there, but the graphics now show up in the upper left side of the designer window.  The window also doesn't scale with the zoom properly  It's always at 100% and when I change the "zoom," it just gets blurry instead of changing size.  Below is a photo where I lowered the zoom but the image just got blurry.  It will update when I change things in the code however.  The program also will build with no errors and will run just fine with the popup in the correct position.  Is this a bug?  Has anyone encountered this and found a solution?  Thanks.

Visual Studio Clickonce issue

$
0
0

I have been maintaining a Visual Basic (Visual Studio) application for many years without issue.

A few days ago users on Windows 10 reported that the program will no longer run from the desktop Clickonce icon. After investigation:

Win7, all OK

Win10, the only way the program will run is by going to the convoluted \apps\2.0\ program folder in the users area and run as administrator. UAC levels make no difference.

This only seems to be new releases that have been published and installed in the last few days, since about Jan 4/5 2017. As a test I have rebuilt and re published an old previously working snapshot with no luck. The certificate and pfx file is still OK.

What's changed?

The application is neing maintained on a Win7 desktop.

Help, thanks


Lets be careful out there!

How to create static web site

$
0
0
in visual studio 2015 community edition i want to create a website that does not contain more than html/css and javascript. i can't see how to make such a site. i can see only dynamic sites

How to get all visible words of an TextPattern using UIAutomation?

$
0
0

I'm using UIAutomation to get all the words from an AutomationElement that are currently visible on the screen, including its text and its bounding rectangles.

I already receive all visible lines using the TextPattern.GetVisibleRanges() method which returns an array of TextPatternRanges.

In the next step, I try to split each line into words using the TextPatternRange.Move() method with TextUnit.Word. The problem is that I could not find an indicator that tells me when I reach the last word of the line. 

I already tried comparing the endpoints of the TextPatternRanges of the line and the current word, their bounding rectangles or the length of the string containing the lines and the extracted words. But I still could not figure out when I reach the end of the line. That leads to an infinit loop in some lines because there is no indication when to end the line processing.

// Traverse all (at least partially) visible lines
var visibleLines = textPattern.GetVisibleRanges();
List<string> testresults = new List<string>();
string expectedText = "";
foreach (var lineRange in visibleLines)
{
	// Select first word
	var currentRange = lineRange.Clone();
	currentRange.Move(TextUnit.Word, 1);
	currentRange.Move(TextUnit.Word, -1);

	expectedText += lineRange.GetText(-1);
	int lineLength = lineRange.GetText(-1).Length;
	int currentLength = 0;

	// Traverse through all words of the line
	int distance = -1;
	System.Windows.Rect currentWordBounds = System.Windows.Rect.Empty;
	System.Windows.Rect lastWordBounds = System.Windows.Rect.Empty;
	while ((currentLength < lineLength) && (currentWordBounds.IsEmpty || !lastWordBounds.Equals(currentWordBounds)))
	{
		string wordText = currentRange.GetText(-1);
		currentLength += wordText.Length;
		var currentWordBoundList = currentRange.GetBoundingRectangles();
		lastWordBounds = currentWordBounds;
		currentWordBounds = currentWordBoundList.Length != 0 ? currentWordBoundList[0] : System.Windows.Rect.Empty;
		if (!currentWordBounds.IsEmpty)
			testresults.Add(wordText);

		currentRange.Move(TextUnit.Word, 1);
		distance = currentRange.CompareEndpoints(TextPatternRangeEndpoint.End, lineRange, TextPatternRangeEndpoint.End);
	}
}

Using this code, the inner while-loop does not break at the end of the line in some cases although I compare the length of the extracted words and the length of the line as well as the their bounding rectangles. I also tried to compare the endpoints of the TextPatternRanges of the current word and the line using the TextPatternRange.CompareEndpoints() method, but it always returns -1 even for the last word of the line. This is probably caused by invisible characters such as \r\n, but I don't know how to get around this issue. Unfortunately, I could not find an example that shows how to achieve this.

So my question is: How can I detect if I reached the end of a line TextPattern by using the Move method? Or which break condition should I use for the inner while loop, respectively? Or is there another, better way to split a line TextPatternRange into multiple word TextPatternRanges?


VS 2015 - Trojan Horse virus named Atros4.BPLN in the Hello World.exe

$
0
0

I installed VS Community 2015 and tried the installation with the simple "Hello World" console program. At the end of the compilation, I got a message from AVG Antivirus that "Hello World.exe" contained the Trojan Horse virus Atros4.BPLN and gave me an option to clean. Appreciate if anyone can provide suggestions on what to do.

Viewing all 21115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>