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

VS 2017 - How do you surpress the warning - Object Initialization Can Be Simplified

$
0
0

If I build my project in VS 2015 I have never seen this warning; how do I turn it off?

This is the line of code VS 2017 throws the warning for, I do not want to initialize every property in one line just because it can be done.

// Create DataField
DataField field = new DataField();

Please tell me there is a way to suppress this warning.

Thanks,

Corby

--

To levitate is hard, showing someone else is really hard.


VS2015 Code Metrics Powertool CA0055 Error

$
0
0

Context:

I downloaded the code metrics powertool (https://www.microsoft.com/en-us/download/details.aspx?id=48213&wa=wsignin1.0).

  • I'm using Powershell to automate the command line call.
  • I'm analyzing both new and older .dll and .exe files. 
  • I'm running the powertool on a VM where I have administrator access; analyzing files on that same VM.

On 84% of cases (out of about 10,000), I receive the following error (where exampleFileName is a path to a file that does exist at that location):

.\metrics : error : CA0055 : Could not load file: 'E:\exampleFileName.dll'.
At line:48 char:13
+             .\metrics /f:$filePath /o:$outFilePath /directory:$directory
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (error : CA0055 ...exampleFileName.dll'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError


Note: I don't have FxCop.exe in the FxCop directory, just running off of metrics.exe.

Question:

Could this be from running the code from the ISE? Unfortunately I do not get any analysis results when this error is hit; the program just continues to the next file. I get the same results running from the Powershell console. 

Could this be a missing reference error? (as per https://social.msdn.microsoft.com/Forums/en-US/6a9db9d2-7316-48a4-b35f-4e939c86a8e0/ca0055-could-not-load-eflanguagesalesposeidonwebintegrationdll-ca0052-no-targets-were?forum=vstscode)

I am receiving some CA0058 missing reference errors as well, just wondering if this could be more missing reference errors not being cast correctly.

Could this be a .NET versioning issue? (as per https://support.microsoft.com/en-us/kb/913447) 

Are there any ways to work around this issue that do not involve changing the project files? 

How to remove this annoying blue line after double clicking on an compiler error in Visual Studio 2015 Enterprise

$
0
0

Click here to zoom in I went throughALL options of this product. Didn't find anything that removes it!

Someone must tell me how to do this, because I can't figure this out myself.

Believe me I tried! I am so upset and angry now!
If I won't solve this problem soon, I will uninstall this product from my computer forever!

Heur.AdvMl.b virus and Norton Internet Security

$
0
0

Just starting with VS Community 2015 ... every new project open the .exe file has my anti-virus "package "quarantine the .exe file generated by the project and sends me a message that associated file contains

Heur.AdvMl.B trojan/virus and at high risk .. just beginning and would like assurance VS Community is a safe application to run.. googling the issue calls this a virus heuristic detection virus and comments from don't worry about to stop using VS or Norton ..  learning C and so producing lots of practice projects and this causes a lot of Norton warnings... 

Appreciate comments

VS Community 2015 and Target Platform Version

$
0
0

Beginner using VS Community 2015 with Win 10 OS .. modified VS Community to include Win 10 SDK .. all working but for every project created (learning C/C++ so creating lots of small practice projects) I have to go Configuration Mgr andreset the 

Target Platform Version to 10 .. always initially opens with Platform Version 8.1 and will not compile and recieve MSB8036 error stating it cannot find Win SKD 8.1 ... reset to Platform Version: 10 and no problem so question is how to set Configuration Application screen to default to Version: 10 eliminating need to reset constantly .. admit beginner and probably easy fix but I haven't found yet 

Some Settings Questions

$
0
0

MVS 2015 v14.0.25431.01 Update 3

Installation went well and for the most part things are going smoothly. I'm about a month into studying C# as a hobby and having a blast but I do keep running into unexpected twists.

I'm following along with a tutorial and I see something happening on the video that doesn't happen for me. VS offers to import a file.

How do I set things up so that VS offers to import a DLL as is shown above? I can manually type in the using statement but it would be nice if I could turn this feature on.

Another question... also from the tutorial the guy shows creating a Views folder in the project and moving the MainWindow.xaml and MainWindow.xaml.cs files into that folder from the top level of the project. When he did it, it seems the App.xaml.cs file was updated with the new location but when I moved the files I had to manually update App.xaml.cs (after searching for the reference to the files). Is this some video magic he performed or a setting?

I've been through the settings in Visual Studaio and, as a person just starting out, I have to say it is overwhelming. I'm finding the available options to be more confusing to me than learning C#. Kinda.

Downgrade right Visual Studio Enterprise to Visual Studio 6

$
0
0

Dear MS MPN Team, Our customer want to purchase newest version Visual Studio Enteprise Edition. But they asking about downgrade right support for old Visual Studio 6 of them. Could you please confirm and let me know the answer ? Thank you so much

Reset Zoom in VS 2012 Data Tools

$
0
0

All of a sudden, the font and appearance of my Visual Studio easel has completely changed!

The zoom bar is huge, and the font in the Connection Manager window is just as large! See the attached image:

I've looked everywhere and cannot find how to get things to display properly - or get these objects/fonts any smaller.

Has anyone dealt with or seen this before???

Any help would be appreciated!

Thanks!!


A. M. Robinson


Visual Studio 2017 RC: Anroid NDK Python being flagged as virus

$
0
0

Did anyone else run into this with VS20017 RC where python, part of the android NDK, was being flagged by Mcafee as a virus?

3 files get removed during install as RDN/Generic.hbg trojans

python2.7.exe
python.exe
python2.exe

Can it be the package is actually infected or just false positives? Installer downloaded from MSDN subscription.

VS Express 2015 ..

$
0
0
Brand new, trying to learn C .. installed VS Express 2015 on Win 10 OS desktop .. just using std "Hello World" beginning C program ... compiles correctly but for the life of me there is no output display screen with print out "Hello World" .. cannot find Win 32 console or using C prompt screen that displays output if that is issue .. very poor documentation on IDE use of Express version .. should I use VS Studio .. very confused .. and beginner .. an help appreciated 

Code Analysis

$
0
0

I am a big believer and heavy user of static code analysis to ensure quality code without having to manually review everyone's work.

It looks like starting with ASP.NET Core Web Application projects in Visual Studio 2015 and now continuing into other project types in Visual Studio 2017 RC, there is no longer a static code analysis option.

Where I would once right-click on a project and select Properties and be able to select the Code Analysis page to set and configure my code analysis options, the Code Analysis page no longer exists for ASP.NET Core Web Application projects nor does it exist for what would appear to be additional project types in VS 2017 RC. I've tried a .NET Framework Class Library project and an ASP.NET Core Web Application and neither have any option for code analysis.

Is the Microsoft team no longer building in support for static code analysis in Visual Studio?  This would be very disappointing if true.

If code analysis is only supported on certain project types in VS 2017 RC, is there a reason why and is there a listing of the supported project types somewhere?






Jquery intellisense is missing for bootstrap and unobtrusive validation

$
0
0

I have added _reference.js file to options menu as shown below but still intellisense is missing from bootstrap and jquery.validate.unobtrusive  and any jquery plugin file. I am told to add jquery-2.1.0-vsdoc.js to the options menu but still didn't work.

any help would be appreciated.


Bassam wassouf

Visual Studio 2015 Universal Windows App development: WYSIWYG problem, unable to see dropped controls from the toolbox

$
0
0

Hi,

I'm new to Universal Windows App development. I have a problem using Visual Studio 2015 Universal Windows App development. I can't see my dropped controls from the toolbox. For example, when I drop a Button control (named "Mybutton") from the toolbox on MainPage.xaml, the XAML code will change as expected:

<Button x:Name="Mybutton" Content="Button" Height="100" Width="100"/>

Although the XAML code has been changed, I can't see my button control as illustrated in the image below.

A classic WPF solution in VS2015 on the other hand is showing my button as expected:

What am I doing wrong?

Tracking quality by developer using TFS

$
0
0

This is my first posting and inquiry on this topic. I am trying to use TFS to track the number of times a BUG ticket is returned to the primary developer and after discussing with my TFS admin I am reaching out to this forum.  I was wondering if there is a field that can be incremented when a bug ticket goes from one state ie in QA back to a previous state ie In Development.  I looked at the reactivation report but it is a grand total view not individual developer.  Any ideas on this or another option to achieve the same objective.  IE By developer how many times does a bug get returned to the developer. 

blue double arrow on shortcut icon under Windows 10

$
0
0

Hello,

After a recent update of Windows 10 pro, when i install my softwares with my installers (made as a VS setup project), a double blue Arrow is overlayed on the icon of the desktop shortcuts of my program.

Some one can explain why, and especially how to remove these blue arrows?

best regards

Pascal


Where did ADO.NET Entity Data Model Designer has gone in Visual Studio 2015?

$
0
0

I have Microsoft Visual Studio Professional 2015 Version 14.0.23107.0 D14 REL ,Microsoft .NET Framework
Version 4.6.00079.

I can no longer for ADO.NET Entity Data Model Designer in the installed or online templates?

Thanks

VS2015 - So disappointed

$
0
0

I am a BizSpark member, trying to do development, working on a project using the TeamSpeak3 SDK. My normal platform is VS2005 or 2008, experience in the VB side. This SDK requires 2015 and its in C#. So I started off with the 2015 Community edition, using a fresh install of Windows 7 Professional on a VMWare workstation. Generally, no internet connection is allowed for safety reasons.

After a few weeks, the net was allowed, had to FIGHT to get windows update to work ONCE (never worked since) and along the way, VS2015 said "Hey great BizSpark member, you can upgrade to VS2015 Enterprise... so I did. Removed the old community edition, installed Enterprise Update 3.

After using this for a few months, I have to say I am not impressed. Many times, it takes *forever* to load a project. Even something simple like a blank windows form with no code. Three times now, I've had the "you should report this to Microsoft" pop up.

When I deal with my project, about 1 out of 5 times, after a fresh compile.. and I run it.. it craps out saying that some controls values were not initialized correctly, have null values... causes a run time failure. OR.. When the program loads and I connect into my SDK server and get a list of channels, they will create nodes in the treeview control. And when I click on a node, it crashes the program saying the node key has a null value. You can't create a node with a null value so how does this happen?

Frequently during testing, I will create events for things (such as on-click etc) and then decide there is a better way or a different event I need to use... and when I use the designer to delete that event, it also deletes all of the code I put into the event, but leaves the shell intact. OR if I am in code view, decide I dont want that event and delete it.. designer view craps out on loading because the event isn't there, and I have to put it back in again.

This is but a small list of issues I have. From what I can tell, there are no bug fixes to version 3... if there are, windows update never gives me anything, it just spins for hours on end "getting updates", and never finds a thing for *anything*.

Is the community edition any better? More stable?

I can't believe Microsoft lets these things happen. If I can't code a program that is stable and works, then it makes it really tough to remain in BizSpark.

Just sayin...

Gary

Visual Studio Enterprise 2015 Update 3 throws NullReferenceException when viewing "Extensions and Updates" options menu

$
0
0

When I navigate to Tools > Options > Extensions and Updates, Visual Studio 2015 Update 3 crashes with a NullReferenceException. I can see the following callstack both in Event Viewer and when debugging the exception in another instance of VS2015:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at Microsoft.VisualStudio.ExtensionManager.VSPackage.ToolsOptionsPage.OnActivate(System.ComponentModel.CancelEventArgs)
   at Microsoft.VisualStudio.Shell.DialogPage+DialogSubclass.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
   at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(System.String, System.Object, System.Object ByRef)
   at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(System.String, System.Object, System.Object ByRef)
   at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(System.Object)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)


I assume it's something local to my environment but I can't figure out what's causing it or how to revert to a state that undoes the issue. I've run 

devenv.exe /ResetUserData

and

devenv.exe /ResetSettings


to no avail. I've also uninstalled and reinstalled Visual Studio 2015. After doing that I can get to the "Extensions and Updates" once or twice but it doesn't let me add a new gallery. Eventually it starts throwing the NullReferenceException again.

I'm open to any additional troubleshooting suggestions.

VS2015 or VS2017 RC does not start IIS Express 64 bit

$
0
0

--- This question has been also posted in 'Visual Studio Development  >  Visual Studio Diagnostics (Debugger, Profiler, IntelliTrace)' ---

Even though I have set up visual studio to run IIS Express 64 bit, it continues to start IIS Express 32 bit. I need to run the 64-bit version because I have some references that will only work on a 64-bit host environment.

My projects were created based on template "ASP.NET Core Web Application (.NET Framework)" and,
I have set up visual studio (2015 and 2017 RC) to use IIS Express 64 bit by going to Tools / Options / "Project and solutions" / "Web Projects" and checking the option "Use the <g class="gr_ gr_13 gr-alert gr_spell gr_disable_anim_appear ContextualSpelling multiReplace" data-gr-id="13" id="13">64 bit</g> version of IIS Express for web sites and projects".
I know it is running IIS Express 32 bit version because the task manager indicates "IIS Express Worker Process (32 bit)" and also the command that started the process shows the path "C:\Program Files (x86)\IIS Express\iisexpress.exe" that is the location of the 32 bit version of IIS Express.

Thank you in advance for the help you can provide.

Visual Studio for Mac live view

$
0
0

Hi.

I am the definition of newbie when it comes to use Visual Studio, and now in particular VS for Mac (Preview). Coming from Appcelerator and would like to give this a shot.

Question: Appcelerator has a nice feature enabling You to see live view changes in simulator. Googling a bit made me believe this is also possible for VS Mac when it comes to Xamarin Forms. Is it true that live view works for Xamarin Forms, and if Yes, only for Xamarin Forms?

Tnx

Viewing all 21115 articles
Browse latest View live


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