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

Don't see the 'Click here to add a step' and cannot add steps to a new test case in Visual Studio 2013 Ultimate

$
0
0

Thanks in advance for any help.

I am trying to create a test case work item using Visual Studio 2013 ultimate, but there seems no way I can insert a step (Action/Expected Result) to the new test case in visual studio. In MTM, there is a line of text says "Click here to add a step" at the bottom for me to click and add a new step, but there is nothing like that in Visual Studio. Anyone know why? Am I missing some configuration somewhere?

Thanks.


Visual Studio MVC Web application

$
0
0
I want to practice a mvc web application using visual studio 2019. Need  a video or  help document.

VS not respecting Windows 10 Proxy for test runs

$
0
0
I setup my Windows Proxy to hit my proxy server at work over the VPN and that works for other apps but Visual Studio does not use these settings when I am running integration tests via the test runner.  I have followed these instructions for the setup:
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/proxy-configuration

Follow me on Twitter - @chief7

Visual Studio 2019 Dataset Designer Error: Value cannot be null. Parameter name:instance

$
0
0

I have opened an existing project in VS 2109.  When trying to open any data set I get the following error.

Value cannot be null. Parameter name:instance

Call Stack:

at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
at System.ComponentModel.Container.Add(IComponent component)
at Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

I have tried changing the target Framework.  Did not help.

Any suggestions?

VS2015 - SSIS Project - Recent Projects and Solutions

$
0
0

Hi,

I am using VS2015 community edition for an SSIS Project. In my SSIS Project I have Script Tasks.

When I edit a Script Task another instance of VS2015 opens which is OK. However the problem is that that Script gets added as Recent project. Is there anyway to stop that from happening.

The image below is from the Recent list in the Start Page, the menu option lists the same projects

 List of recent projects with most being Script edits

Thanks

Steve

Remove all git references

$
0
0

Hello, 

We use TFS in VSTS for our version control library.  For some reason any new solutions I create seem to want to use a local Git repository which I don't need or want.  I created one this afternoon and jsut selected add to source control and there it is, assocaited with Git.  

Is there anyway I can a) set the default to always be TFS and b) remove all Git references so I can check this new solution into TFS/VSTS? 

I'm using VS2019 Enterprise if that makes any difference? 

Thanks 

Visual Studio 2019 : ASP.NET MVC: Angular, Bootstrap site

$
0
0
I am working on a ASP.NET MVC: Angular , Bootstrap site from scratch.  What is the best way to add Angular to the project?  Also is this the best stack to use?  Any recommendations for online tutorials or reference websites.

Now that I've created a Shared Project, how to I use it?

$
0
0

We've had a practice of duplicating a lot of code in some of our WPF apps (I suspect MVC apps as well). I recently learned about Shared Projects, so I proposed to my manager that we utilize a Shared Project to help reduce duplication of code. So, I created a Shared Project I called CoreShared. Within CoreShared I duplicated the folder structure of one of our WPF apps, into which I copied XAML and .cs files into the various folders. For example, in the original project there's a folder named Assets. Within Assets is a resource dictionary file named ButtonListResources.xaml. When I reviewed ButtonListResources.xaml I didn't see anything that was dependent upon something specific from the original project, so I copied it into CoreShared | Assets.

Likewise, there's another folder in the original project, named Common, which has a lot of .cs files in it. I reviewed them all and when I identified files that don't appear to me to be unique to the original project, I copied those .cs files out of the original project, into a folder I created in CoreShared, named Common. Of course, I changed the namespace from the original project to CoreShared, both for all of the .xaml and .cs files I copied from the original project, to the CoreShared project, taking into account the folder in CoreShared that I placed that file.

Next I added the Shared Project, to the solution.

Now that I've done all that work, I want to change the original project's reliance upon the .xaml and .cs files to those same files, but in CoreShared. Only, I'm not sure how to go about doing this. For example, here's a reference to one of the .xaml files in the original project, which references ButtonListResources.xaml. Right now it's referencingButtonListResources.xaml:

<ResourceDictionary.MergedDictionaries><ResourceDictionary Source="ButtonListResources.xaml" /></ResourceDictionary.MergedDictionaries>

How do I make it point to ButtonListResources.xaml from in the Assets folder of CoreShared?


Rod


Getting "The designer could not be shown" error even if I create a new project in my solution

$
0
0

In VS2017 Professional (Version 15.9.11), I'm getting The designer could not be shown for this file because none of the classes within it can be designed when I attempt to show a form that has worked for years in a solution loaded with many projects.  Yes, the partial class for the form is the first thing in the code file.  And no, it's not an inherited form, just your basic form.  The same issue appears if I create a new project in my solution and add a form.

If I create a new solution and add a project, I don't get the error.  So I don't think the error is with the form, I think it's higher up.

I've tried:

  1. cleaning the solution, rebuilding, cleaning, closing VS and reopening it, rebooting
  2. updating VS2017 to the latest
  3. targeting a different version of .NET (4.6.1)
  4. going back to the original version of .NET (4.5)
  5. then repeating step 1 with cleaning & rebuilding

The call stack is
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

I've searched and not found any suggestions that help.  Again, I think it's in a higher level than the form or even the project.

Now I'm just patiently (or maybe not so patiently) waiting for the Microsoft experts to call me back.

Visual Studio 2017 to 2019 Unit Test "BuildShadowTask" Error

$
0
0

Hello,

After moving to VS 2019 my unit tests won't compile anymore with the following error:

The "BuildShadowTask" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\TeamTest\Microsoft.VisualStudio.TestTools.BuildShadowsTask.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\TeamTest\Microsoft.VisualStudio.TestTools.BuildShadowsTask.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

It appears it is still referencing v15.0 instead of v16.0 in the path, but I can't find where to update it.

VS cross-compilation to Linux

$
0
0

Hello,

I have a project in Eclipse, that I'd like to migrate to Visual studio.

This is a project for cross compiling linux binary in windows environment (32 bit shared object for x86-64 architecture)

I have set up a work environment (remote machine with Ubuntu 16.04 LTS 32bit, SSH connection) and I'm able to compile my project from visual studio, but I'm not getting same result as in eclipse. 

When compile this project in eclipse I see following command line:

x86_64-pc-elf-g++ "-I[include path 1]" "-I[include path 2]"  -O0 -g3 -Wall -c -fmessage-length=0 -mx32 --no-use-cxa-atexit -fPIC -o [output]

I tried setting these options in Visual studio in:

Project properties>>C/C++>>All option>>Additional option

but almost none of them are recognised. -O0 -Wall -fpic(if it is same as -fIPC) are ok, rest are not.

Is it possible to achieve what i'm trying?  

Problem with MAT (Multilingual App Toolkit 4.0) extension in visual studio 2015.

$
0
0

Hi

i've found and installed Multilingual App Toolkit 4.0 within my vs 2015 via Tools > Extensions and updates... menu, but does not exists in Tools menu inside my vs 2015 project.

Note 1 : i've found "Multilingual App Toolkit 4.0" inside Tools > Extensions and updates... > Installed but disabled and con not disable or uninstall it!

Note 2 : I think it does not installed correctly (i uninstall and install again 3 time but not worked!), because in installing process, when reached to "Registering visual studio 2015 extensions ..." after a pretty long time, without complete progressBar of installer, go to final page which tell me installation completed.

Note 3 : i'm using Visual Studio 2015 Update 1

Can anybody experience this problem and give me how to work-around this problem?

Thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

Vs2017 (15.9.11) changes encoding from ANSI to UTF8 after save

$
0
0

Vs2017 (15.9.11) changes encoding from ANSI to UTF8 after save.

This is not happening for all .cs files but few files.

Note - I tried same in Vs2015 and encoding is not changing there.

Can you please suggest if any fix available ?

After installation VS 2019 cannot build or create any project. VS 2017, 2015 works ok.

$
0
0

I installed VS 2019 pro.

When I open existing project in vs2019, I cannot build project. The project works and buildscorrectly in VS2017.
When I open in VS2019 the project (just now clearly created and working in VS2017), project does not load (in vs2019) and this warning appears.

C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj : error  : The tools version "15.0" is unrecognized. Available tools versions are "12.0", "14.0", "2.0","3.5", "4.0".  C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj

When I manually change (in .csproj file) 

<Project ToolsVersion="15.0" 
to
<Project ToolsVersion="14.0"
Then when trying to reload project, only appears info, that migration is needed.

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.
  - WebApplication1, "C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj"

Non-functional changes required
Visual Studio will automatically make non-functional changes to the following projects in order to enable them to open in Visual Studio 2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1. Project behavior will not be impacted.
  - WebApplication1, "C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1.sln"

When I try to create completely new project in VS2019 (c#/Windows/WEB/ASP.net web application/MVC), only this error appears:

The tools version "15.0" is unrecognized. Available tools versions are "12.0", "14.0", "2.0", "3.5", "4.0".

When I open VS2019 development command prompt and type: msbuild /version, I get this:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>msbuild /version
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
15.9.21.664

The version 15.9.21.664 is strange.

When I open in VS2019 any existing project, it cannot be built in VS2019.

Output:
1>------ Rebuild All started: Project: ZTP_vin, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: ZTP_vin_cs, Configuration: Debug Any CPU ------
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========

Warnings:
Warning  Could not find rule set file "ManagedMinimumRules.ruleset". ZTP_vin C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.VisualBasic.CurrentVersion.targets 133 

Warning  The target "CollectReferencedNuGetPackages" does not exist in the project. ZTP_vin D:\AAA_data\AAA_VB\ZTP_vin\ZTP_vin\ZTP_vin.vbproj  
Warning  The referenced component 'System' could not be found. ZTP_vin_cs   
Warning  Could not create output directory ''.  Exception has been thrown by the target of an invocation. ZTP_vin_cs   
Warning  The referenced component 'Microsoft.CSharp' could not be found. ZTP_vin_cs   
Warning  The referenced component 'Microsoft.VisualBasic' could not be found. ZTP_vin_cs   
Warning  The referenced component 'System.Xml.Linq' could not be found. ZTP_vin_cs   
Warning  The referenced component 'System.Xml' could not be found. ZTP_vin_cs   
Warning  Could not find rule set file "ManagedMinimumRules.ruleset". ZTP_vin_cs C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets 133 

My environment:Win 10 pro, 1809 (build 17763.404)
VS2015, VS2017, VS2019 - pro



Agenda of Contacts in Visual Studio

$
0
0

Hello,

I have to make an agenda of contacts which will contain the name,surname,phone number and the date of birth of someone. I have saved the data in dataGridView. May you tell me how to do search in these data based on name,surname and phone number?

Thank you in advance.


VS IDE Issue Causing Code Conflicts in Project Files

$
0
0

All,

This may not be the place to raise this issue, but it has to be expressed.  

I've experience countless code conflicts with other team members when adding and removing content from a project file (albeit CSProj, VBProj, ect.).  The issue seems to be caused by the VS IDE which does not sort the project file elements.  For example, if my project has a file called "Class1.cs" and I check this project in, when another team member adds a new files to the project, there is often a conflict.  Since VS does not have any standard for arranging these items in the project file, they can end up on random lines.  This issue is exacerbated if someone accidentally deleted or exclude the "Class1.cs" file.  When they add the file back to the project, VS often puts the reference on a totally different line (and even a different group), in the project file. 

It would make sense if VS would sort the items in the files by name.  It would also help if VS had some discernable method of grouping items in the file as well.  This way the removal and addition of a file will always end up on a consistent line.  In addition, adding of new files (based on their name), would end up on a discernable location in the project file; which will reduce conflicts.

I've observed this issue with TFS, VSTS and Git code repositories and can say with absolute certainty that the problem is cause by the VS IDE only.  


- Rashad Rivera [omegusprime.com]

(Removed)

$
0
0

(Removed)

Backup: https://1drv.ms/t/s!Avqi6Pt1BGP3gblljsKGzgTEuZ0dIw

Which Windows SDK works on VS 97?

$
0
0
Hi, which is the latest Windows SDK to work with Visual Studio 97?

Which Windows SDK is the latest to be compatible with Visual Studio 97?

$
0
0

Dear community of the MSDN forums,

My name is Kevin Crans, and I'd like to recompile an old source code of a development program.

This program requires tools inside Visual Studio 97.

I was a little confused if all the Windows 98 SE/ME SDKs delivered after Visual Studio 6.0 are compatible with Visual studio 97.

I do have a windows 98 DDK, but out of experience I know the proper SDK should be installed first.

I also would like to know which MSDN Release of the Windows SDK release is the latest to be compatible with both Visual Studio 97 and Windows ME.

I hope my question can be answered and thank you in advance!

Sincerely,

Kevin Crans

Thanks to Darran Rowe, This thread has an answer inside another thread: https://social.msdn.microsoft.com/Forums/vstudio/en-US/7a9ca16c-e5e9-4e19-923b-ed8b4d7865b8/which-windows-sdk-is-comptaible-with-vs-97?forum=visualstudiogeneral

Which Windows SDK is comptaible with VS 97?

$
0
0
Hi, which Windows SDK is the latest to be compatible with Visual Studio 97?

Viewing all 21115 articles
Browse latest View live


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