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

live change

$
0
0

Hi all,

I am working on a website with Visual Studio (VS). With other IDE I worked with there were tools that make you see changes on the browser as you make change in the file in VS. Unfortunately, I am not able to find this in Visual Studio. Please could you guide me to it?

Thanks,

Naveen



In VS 2017, VS 2015 Static Analysis Tools Not Found

$
0
0

Windows 10
Visual Studio 2017

Related: https://gitlab.com/graphviz/graphviz/issues/1481

I'm trying to build Graphviz in Windows. Whoever last worked on the Windows glue is unavailable/unknown, so hopefully this is a straightforward problem.

Adapting the instructions here, I cloned from Git and used this PowerShell script in the repo root:

git submodule update --init
$env:Path = "$pwd\windows\dependencies\graphviz-build-utilities;$env:Path"
& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" ".\graphviz.sln"

Upon building, I get a variation of the following error for each project in the solution. Can I get a lead on this problem, please? (Per my system's directory structure, the missing folder is C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools.)

ErrorMSB4018The "NativeCodeAnalysis" task failed unexpectedly.
Microsoft.VisualStudio.CodeAnalysis.AnalysisResults.AnalysisResultException: CA0001 : An unknown error occurred while running Code Analysis. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver)
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
   at Microsoft.VisualStudio.CodeAnalysis.RuleSets.RuleSetXmlProcessor.ReadFromFile(String filePath)
   at Microsoft.VisualStudio.CodeAnalysis.RuleSets.RuleSet.LoadFromFile(String filePath, IEnumerable`1 ruleProviders)
   at Microsoft.Build.Tasks.NativeCodeAnalysis.LoadRuleSet(String ruleSetFile)
   at Microsoft.Build.Tasks.NativeCodeAnalysis.Execute()
   --- End of inner exception stack trace ---
   at Microsoft.Build.Tasks.NativeCodeAnalysis.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()exprC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.targets407



devenv.exe holding on to .dlls

$
0
0
We have dll used in solution A and that dll is referenced in Solution B.  We are not able to copy from local\bin\release\solutionA to a network location using console app xcopy .\SolutionA\bin\release\*.* d:\Assembly\SolutionA\.  We get a message that the files are in use and we are unable to copy. The only solution we have found is ending the process tree of devenv.exe process of Solution B or closing Visual Studio and waiting for a period of time, i.e. 5 minutes.  We also have issues copying dll B FROM the network location to our local machines.  All three users experience the same issue and if on user has Visual Studio open all users have locked file issues.

Help on my assignment on programming, golden ratio and fibonacci numbers

$
0
0

I've already got this much coded all this but I don't know what to do next. I've been provided a hint which says

1. Change the Text property of the form’s labels to match what is seen in the sample output at the end of this document.

2. For this project you need to declare only one constant: Const dblGOLDEN_RATIO As Double = 1.6180339887

3. The difference between the current ratio of the last two fibs and the golden ratio must be unsigned. To do this use the absolute value function as follows: dblDiff = Math.Abs(dblGOLDEN_RATIO - dblRatio) 

4. After exiting the loop, display the fib numbers generated in the Text property of the txtDisplayFibs TextBox.

5. To determine how many Fibonacci numbers were generated you can set up a loop counter. You did this in ----; we gave the name intNumFibs to this memory location in ----.

I'm really lost and don't know what to do, i'm terrible at this stuff. I know I just need to add a change of few things but I don't know where/how. Any help will be much appreciated!!!

Public Class Form1

    Private Sub btnFibs_Click(sender As Object, e As EventArgs) Handles btnFibs.Click

        'declare Integer variables for user Input, fib1, fib2, fib3, and num fibs
        Dim intUserInput As Integer
        Dim intFib1 As Integer
        Dim intFib2 As Integer
        Dim intFib3 As Integer
        Dim intNumFibs As Integer
        'declare String variable to store all fibs generated
        Dim strDisplay As String
        'declare Boolean Flag to serve as loop termination condition
        Dim blnFlag As Boolean
        'collect user input from text property of txtUserinput
        intUserInput = CInt(txtUserInput.Text)
        'initialize variables to prepare for entering the loop
        'set up teh first three fibs: 0, 1, 1
        intFib1 = 0
        intFib2 = 1
        intFib3 = intFib1 + intFib2
        'assign 3 to the num fibs variable, since we have 3 fibs before entering the loop
        intNumFibs = 3
        'format the String variable witht he info we have now
        strDisplay = "Fibonacci numbers generated:" & vbCrLf
        strDisplay &= intFib1 & "," & intFib2 & "," & intFib3
        'initialize the Boolean cariable with the correct Boolean expression to it will correctly control the loop
        blnFlag = (intNumFibs < intUserInput)

        'implement loop to generate reamaining fibs
        Do While blnFlag

            'reassign the three fibs to get teh next fib num in intFib3
            'the new fib1 is the old fib2
            intFib1 = intFib2
            'the new fib2 is the old fib3
            intFib2 = intFib3
            'the new fib3 is the sum of the new fib1 and the new fib2
            intFib3 = intFib1 + intFib2
            'increment intNumFibs by 1, since we now have 1 more fib
            intNumFibs += 1
            'append the newest fib to the String variable
            strDisplay &= "," & intFib3
            'update blnFlag so it will continue to correctly control when to exit the loop
            blnFlag = (intNumFibs < intUserInput)
        Loop

        'display all fibs generated in Text property of txtDisplayFibs
        txtDisplayFibs.Text = strDisplay
        'display how many fibs in Text property of lblNumFibs
        lblNumFibs.Text = intNumFibs.ToString()
    End Sub
End Class

    - James D. Varus

unlock file from Source control explorer

$
0
0

hello,

in VS 2015 we used Power Tool TFS in order to unlock files in Source control explorer.

How do I unlock files in VS 2017? I didn't find this tool any more.

thanks,

NC


nir_co

VS2019 vsix not installed

$
0
0
I have attached VSIX installer log below and please suggest the way to fix this.

1/30/2019 5:09:42 PM - Microsoft.VisualStudio.ExtensionManager.CorruptInstanceException: VSIX Installer has encountered a problem. To troubleshoot, follow the steps here: https://aka.ms/pc5ifb ---> Microsoft.VisualStudio.Setup.Dependencies.DependencyGraphConstructionException: The dependent package of 'Microsoft.VisualStudio.Product.Professional,version=15.9.28307.222' cannot be found: Component.8B84B9F8-7BCA-41C4-9235-EA560AA96519,version=16.4.0.49.
       at Microsoft.VisualStudio.Setup.Engine.Initialize()
       at Microsoft.VisualStudio.Setup.Engine.GetProducts()
       at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.IntializePackages()
       at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.GetPrerequisitesInternal(IInstallableExtension extension, ICollection`1 installedPackages, ICollection`1 installablePackages, ICollection`1 unresolvedReferences)
       at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.GetPrerequisites(IInstallableExtension extension, IEnumerable`1& installedPackages, IEnumerable`1& installablePackages, IEnumerable`1& unresolvedReferences)
       at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
    --- End of stack trace from previous location where exception was thrown ---
       at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
       --- End of inner exception stack trace ---
       at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
       at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
       at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
       at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
       at VSIXInstaller.App.Initialize()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

SSIS

$
0
0

Hi Team,

Iam having source data in MSAccess like seperate folder as jan,feb,march,april etc.By using ssis iam loading data like like jan,feb,march etc. one by one manually.Is there any option to load jan,feb,march etc at a time to load in future into destniation folder?

How i did like this,

The D directory is full by visual Studio

$
0
0

Hello friends, I need your help.

On my server I see that disk d is full.

I have entered the directory and I see many folders with a name composed of numbers, plus 2 folders ofSQL and another of TFS.

When entering the carpets composed of numbers, there are many other folders inside, when I enter one of them I see this.

When I open the LOCALIZEDATA file I see this XML



I must to delete space and I do not know if I can delete these folders.

Does anyone know what these folders are, and if they can be deleted?

Thank You


SSIS

$
0
0

Hi,

I am having a single MSAccess database with multiple sheets inside.Like this,i want to load these files at a time.How to make it?

VS Community -> Will Microsoft see or claim any ownership on my code or intellectual property?

$
0
0

Hello,

I have a VS 2013 license.

I would like to start using vs 2017. I want first to use vs 2017 community.

Will Microsoft see or claim any ownership on mycode or intellectual property?

Thanks


w.

Visual Studio 2017 - SSIS Project Incompatible

$
0
0

Hi All,

I created and have been working on a VS2017 SSIS SSDT solution for the past week. Visual Studio crashed a little while ago and after the restart the toolbar message said xxxx plugin caused the crash, click disable after restart never see this message again.

I clicked disable and restart now Visual Studio says my SSIS solution is incompatible and I can't open it, either starting Visual Studio then select the solution or right clicking and selecting open with.

So how do I re-enable SSIS packages?

Thanks

cant load a .sln

$
0
0
my friend sent me an sln as we are working on something but when i open it it shows up blank can i get help

build .net 4.5 app for win 7 on Vis studio 2017 on win 10?

$
0
0

I have a dev sandbox of Visual Studio 2012 on win 7 building an app for .net 4.5. 

My It staff tells me I have to upgrade the computer to win 10.

Can Visual Studio 17 on Win 10 build a .net 4.5 app to run on win 7?

Cannot connect to local TFS Server when VS originally set up using partner license

$
0
0

I have a user who installed VS2017 and is using it as part of the Action Pack Subscription obtained via MS Partner program. This requires that the VS account for licensing be an Office365 account. We use EOP on Office365, so our accounts there have the same email domain as our AD domain.

The the user tries to connect to our internal TFS server, he gets a Not Authorized message. This is because it is using the Office365 account information and not a user on the local domain. When we try to set up a local domain account on VS to access our local TFS, it keeps trying to validate it against the Office365 users, and that user does not exist there.

How do we get VS to not go to Office365 and use the local domain AD instead?

VS 2017 keeps stopping when validating OLE DB destination

$
0
0
This initially happened when I upgraded an SSIS solution from 2008 to 2016. I thought maybe that had something to do with it so I created a new integration services project in VS 2017 and the same thing happened. A message pops up that says "Disabling extension 'Microsoft Integration Services Projects 2.0' might help prevent similar issues". I did that and it caused my other SSIS projects to become incompatible.  Any help would be appreciated. 

Selecting Text Between Two Characters

$
0
0
Hi people, I'm trying to find a way to use richTextBox1.Select( // The Text Between Two Speech Marks ). However, I can't figure it out. I just want to select the text in between two speech marks in the text box, and change the colour of it to green. Anyone able to help?

Controlling how Find Results window results are displayed

$
0
0

Hello,

Say I want to Find all hits of ">Title=".

The occurrences of this text are in various columns of the hit lines (e.g., one hit may be in column 10 and another may be in column 67).

In order to be able to read down the output list very quickly, without being distracted by a jagged hit list and extraneous text surrounding the hit, is there a way to see Find results in a tidy, left-justified output window, e.g.,

>Title='Deciding blah blah blah'

>Title='Not structuring a negative blah blah blah'

The hit line output in the Find Results window is jagged, like the following, which makes it difficult visually to find the hits quickly:

'lkasd fsjkladhf jksdahfjksdahfjk sdhafjksdha fjk;sh>Title='Deciding blah blah blah'klasdjf klsajfklsdjfklsdjfkls

'kajshdfjkshafjksdhfksh>Title='Not structuring a negative blah blah blah'klasdjfklsdajfklsdjfklsdj fkl

Many thanks.

Keith


R K Howard

VSIX not installed through msi in Visual Studio 2019 Preview

$
0
0
Hi Team,

In our Wix project, we are using Custom Action for installing a VSIX file using Visual Studio 2019 Preview vsixinstaller.exe. That VSIX installs some extensions into Visual Studio 2017 and Visual Studio 2019 Preview. In both Visual Studio 2017 and Visual Studio 2019 Preview installed machine, the VSIX file was successfully installed into both the Visual Studio if we provide the below arguments using Command Prompt (Admin mode).

Arguments for vsixinstaller.exe:
/q /l:"ToolboxInstaller.log" "C:\Program Files (x86)\MyApplication\ToolboxInstaller.vsix" /a

But if we use the .msi file(which has custom action containing the above arguments) to install the same VSIX, it was installed only in Visual Studio 2017. It was not installed in Visual Studio 2019 Preview and we got the below error message.


I googled about this issue and found the below link which says that msi calls vsixinstaller.exe that inturns calls another msi.

https://developercommunity.visualstudio.com/content/problem/201700/failes-on-vsix-extentions-install-by-vsixinstaller.html

If this was the case, how it was installed in Visual Studio 2017? Can anyone let me know why the VSIX was not installed in Visual Studio 2019 Preview through msi?

Note:
In Visual Studio 2017 and Visual Studio 2019 alone installed machine, this issue was not occurred. It occurs only in both Visual Studio installed machines.

Error Message:
1/30/2019 5:37:47 PM - System.AggregateException: One or more errors occurred. ---> System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties)
at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.Install()
at Microsoft.VisualStudio.ExtensionManager.ExtensionBatchEngine.Execute(List`1 installableExtensions, Version targetVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BatchEngineInstall(List`1 installableExtensions, InstallFlags installFlags, Version targetVsVersion)
at VSIXInstaller.BatchSetupEngineInstaller.Install(SupportedVSSKU sku, List`1 extensionsToInstall, InstallFlags installFlags)
at VSIXInstaller.BatchSetupEngineInstaller.BatchInstall(IReadOnlyList`1 targetSkus, IEnumerable`1 extensionsToInstall)
at VSIXInstaller.App.OnStartup(StartupEventArgs e)
---> (Inner Exception #0) System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties)
at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---

*******************************************************************

Manifest file:
*****************
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0]" />
<InstallationTarget Version="[15.0,17.0]" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,17.0]" Id="Microsoft.VisualStudio.Enterprise" />
</Installation>
<Dependencies>
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>

No subfolder show in my source control explorer althought have permission. Please help

$
0
0

no subfolder show in my source control explorer


Enum problem

$
0
0

I was working on this:

enum Teams
{
	Atlanta,
	Anaheim,
	Arizona,
	Baltimore,
	Boston,
	Brooklyn,
	Cincinati,
	Cleveland,
	Colorado,
	Detroit,
	Houston,
	KansasCity,
	LosAngeles,
	Miami,
	Milwaulkee,
	Minnesota,
	NewYork,
	NorthChicago,
	Oakland,
	Philadelphia,
	Pitsburgh,
	SanFransisco,
	SanDiego,
	Seatle,
	StLouis,
	SouthChicago,
	Tampa,
	Texas,
	Toronto,
	Washington,

};

switch (m_teamSelected)
	{
	case: Atanta:
	break;
	case: Anaheim:
	break;
	case: Arizona:
	break;
	case: Baltimore:
	break;
	case: Boston:
	break;
	case: Brooklyn:
	break;
	case: Cincinati:
	break;
	case: Cleveland:
	break;
	case: Colorado:
	break;
	case: Detroit:
	break;
	case: Houston:
	break;
	case: KansasCity:
	break;
	case: LosAngeles:
	break;
	case: Miami:
	break;
	case: Milwaulkee:
	break;
	case: Minnesota:
	break;
	case: NewYork:
	break;
	case: NorthChicago:
	break;
	case: Oakland:
	break;
	case: Philadelphia:
	break;
	case: Pitsburgh:
	break;
	case: SanFransisco:
	break;
	case: SanDiego:
	break;
	case: Seatle:
	break;
	case: StLouis:
	break;
	case: SouthChicago:
	break;
	case: Tampa:
	break;
	case: Texas:
	break;
	case: Toronto:
	break;
	case: Washington:
	break;
	}

I keep getting this error:

Error (active) E0029  expected an expression

Viewing all 21115 articles
Browse latest View live


Latest Images

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