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

Update 2

$
0
0

Since the new update 2 for Visual Studio, the snippet now needs to be identified by the title, this makes the whole point of the custom snippets pointless. i.e. custom lists jobs\list = List in jobs folder is the same as columns\list = List in columns folder. Now when you use the intellisense it will show the snippet that first matches the title of List, this will usually be a code snippet that is totally irrelevant. Why do you constantly make something that works and then break it?

Is there a fix, a workaround. Or will this remain another pointless feature...

Cheers Pete 


Disable Format on Copy in VS 2015

$
0
0

Hi,

I'm loving VS 2015 and all, but there's this really frustrating feature where (when I have a block of code selected) and I copy it with 'Ctrl+C', it freezes up for a few seconds and then a dialog pops up saying that it's trying to format the selection on copy....

This is really slow and irritating and I'd like to disable this feature as I don't need it.  How can I disable the format selection on copy feature?

Thanks,

Danrae

Copy and Paste??? VS 2015

$
0
0

When I copy a line of code to paste it some were else I get a box that pops up titled "Copy"

and in the box the message is "Formatting selection" and it takes for ever.. Why is this and can I disable it?

That project is large ... on my other projects are a little smaller it doesn't do it? I have played with the settings on both maybe there out of wack.. I have plenty of ram (8 gigs) and a core 2 duo 3.2 processor.

Any ideas.. thanks

Can you develop Mobile apps(WP and Android) in Visual Studio 2015 without Hyper-V feature?

$
0
0
I have Windows 10 Home Single Language OS. As we know that Home edition doesn't have Hyper-v feature so that you have to upgrade it to pro and it cause you to buy new product key for pro. I want to install Visual Studio 2015, and do some mobile apps development in it, can I do it without Hyper-V feature in Visual Studio 2015?

What happened to the ability of collapsing #regions with keybinds?

$
0
0

Ctrl+M, Ctrl+O
Ctrl+M, Ctrl+H

No keybind is working and I see no menu option or unbound keybind option in the options meny.

All they do now is collapse function definitions.

Why was this changed from 2010/2013 (and mybe even before). The ability to create AND collapse regions is quite important.

Thanks,

K

Visual Studio 2015 Stuck on Build started

$
0
0

I have project made in visual studio 2015 with workflow for workflow manager 1.0, content type inherited from SharePoint 2013 workflow task, custom workflow task list, custom workflow history list and site column.

Site column is added to the content type and content type is added to the workflow task list. It have 3 feature, 1 feature with web scope is for content type, another one is with site scope for site column and last one is with web scope for workflow, workflow history and task list.

I have event receiver for last feature where in I add content type to workflow task list on feature activate.

Now situation is that until some time it project was building very good but today suddenly it is taking time, stuck on building and nothing happens.

Yea I forget to mention you that I am using cloud forge free version with Askh svn and tortoise svn.

Kindly can somebody help me what can be the issue.

Update

Well what I found that site column was in two features, so I removed it and put it in site scope feature. Than I put it for building, what I found that it building but taking 1 - 2 hour. What can be the reason !!!!!

Please note it is successful build & deploy

Missing project properties

$
0
0

Hi all,
I tried to transfer the settings of VS2015 community from one PC to another.
Unfortunately the add-on available in the first PC did not match those available on the second, so something went wrong.

During some try to fix the settings on the second PC, changing language and adding same add-on set, I ended up with a solution with few C++ project in, where there are not visible anymore the project property pages.

If I press Alt-F7 on any project the usual property dialog appears but the the tree on the left only "Code Analysis" section is visible, and nothing else.

I couldn't revert this to a normal situation.

I've already tried the following without result:

- Disable and uninstall all add-on
- Remove all projects and solution temporary files and rebuild
- Copy over the entire subdirectory from the other PC where it works normally
- Check other solutions on the same PC but they work perfectly
- Scanning the registry for the solution name, in case there was some setting there
- Note that the projects compile and run perfectly, only I cannot change any setting
- Note also that the same solution on the first PC works ok
- Searching the internet and groups didn't result in any hint

Are there any other hidden place to look for a solution?

Thanks.
Regards.
Mau.


Could not find an existing platform WinMD location !

$
0
0

Since i updated to update 2 , i keep getting this error message

"ErrorCould not find an existing platform WinMD locationAPPNAMEC:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets416"

it happens only when i try to build release x64 x68 and ARM , 

any idea why ?

thanks


VS 2012 database project schema compare error

$
0
0

I have a user who can successfully run a schema compare between SQL database (source) and database project source control (target) in a database project in VS 2012.  When the user tries to migrate the changes, there are two warnings and the migration fails.

The first error states 'the login for the source does not have the VIEW ANY DEFINITION permission.  The comparison will be restricted to database scoped elements if the target is a database'.

The second error states 'target update could not update script for element 'dbo''.

The user is in an active directory group with db_owner and view definition permissions on the source database.  Another developer in the same active directory group with the same permissions is able to successfully migrate the database source to the project destination.

Any assistance is greatly appreciated.

Very long projects building in release configuration

$
0
0
After upgrading VS2015 to Update2 building time was increased up to 3-5 minutes in Release configuration.  In debug configuration the build takes 20-30 seconds. Stuck happens after the "1> ------ Build started: Project: FirstApp, Configuration: Release x86 ------", then nothing is observed for 3-5 minutes and then the build is proceeding normally.

Pre build command that's been working from 2010 - 2015 Update 1 now broken with Update 2

$
0
0

I didn't setup these scripts so I'm kind of in the dark. From what I gather Tortoise SVN reads the assemblyInfo.Template and generates the AssemblyInfo.cs file with the current build versioning information. According to the subwcrev documentation it's a syntax error. I copy paste the command into visual studio's command line and it works just fine. I don't know where to go from here! Here is the error:

SubWCRev 1.9.0, Build 26652 - 64 Bit
42> 
42>  Usage: SubWCRev WorkingCopyPath [SrcVersionFile DstVersionFile] [-nmdf]
42> 
42>  Params:
42>  WorkingCopyPath    :   path to a Subversion working copy.
42>  SrcVersionFile     :   path to a template file containing keywords.
42>  DstVersionFile     :   path to save the resulting parsed file.
42>  -n                 :   if given, then SubWCRev will error if the working
42>                         copy contains local modifications.
42>  -N                 :   if given, then SubWCRev will error if the working
42>                         copy contains unversioned items.
42>  -m                 :   if given, then SubWCRev will error if the working
42>                         copy contains mixed revisions.
42>  -d                 :   if given, then SubWCRev will only do its job if
42>                         DstVersionFile does not exist.
42>  -q                 :   if given, then SubWCRev will perform keyword
42>                         substitution but will not show status on stdout.
42> 
42>  -f                 :   if given, then SubWCRev will include the
42>                         last-committed revision of folders. Default is
42>                         to use only files to get the revision numbers.
42>                         this only affects $WCREV$ and $WCDATE$.
42>  -e                 :   if given, also include dirs which are included
42>                         with svn:externals, but only if they're from the
42>                         same repository.
42>  -E                 :   if given, same as -e, but it ignores the externals
42>                         with explicit revisions, when the revision range
42>                         inside of them is only the given explicit revision
42>                         in the properties. So it doesn't lead to mixed
42>                         revisions
42> 
42>  -x                 :   if given, then SubWCRev will write the revisions
42>                         numbers in HEX instead of decimal
42>  -X                 :   if given, then SubWCRev will write the revisions
42>                         numbers in HEX with '0x' before them
42>  -F                 :   if given, does not use the .subwcrevignore file
42> 
42>  Switches must be given in a single argument, e.g. '-nm' not '-n -m'.
42> 
42>  SubWCRev reads the Subversion status of all files in a working copy
42>  excluding externals. If SrcVersionFile is specified, it is scanned
42>  for special placeholders of the form "$WCxxx$".
42>  SrcVersionFile is then copied to DstVersionFile but the placeholders
42>  are replaced with information about the working copy as follows:
42> 
42>  $WCREV$         Highest committed revision number
42>  $WCREV&$        Highest committed revision number ANDed with the number
42>                  after the &
42>  $WCREV+$        Highest committed revision number added with the number
42>                  after the &
42>  $WCREV-$        Highest committed revision number subtracted with the
42>                  number after the &
42>  $WCDATE$        Date of highest committed revision
42>  $WCDATE=$       Like $WCDATE$ with an added strftime format after the =
42>  $WCRANGE$       Update revision range
42>  $WCURL$         Repository URL of the working copy
42>  $WCNOW$         Current system date & time
42>  $WCNOW=$        Like $WCNOW$ with an added strftime format after the =
42>  $WCLOCKDATE$    Lock date for this item
42>  $WCLOCKDATE=$   Like $WCLOCKDATE$ with an added strftime format after the =
42>  $WCLOCKOWNER$   Lock owner for this item
42>  $WCLOCKCOMMENT$ Lock comment for this item
42> 
42> 
42>  The strftime format strings for $WCxxx=$ must not be longer than 1024
42>  characters, and must not produce output greater than 1024 characters.
42> 
42>  Placeholders of the form "$WCxxx?TrueText:FalseText$" are replaced with
42>  TrueText if the tested condition is true, and FalseText if false.
42> 
42>  $WCMODS$        True if local modifications found
42>  $WCMIXED$       True if mixed update revisions found
42>  $WCEXTALLFIXED$ True if all externals are fixed to an explicit revision
42>  $WCISTAGGED$    True if the repository URL contains the tags classification pattern
42>  $WCINSVN$       True if the item is versioned
42>  $WCNEEDSLOCK$   True if the svn:needs-lock property is set
42>  $WCISLOCKED$    True if the item is locked
42> 
42>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1250,5): error MSB3073: The command "subwcrev.exe "C:\Slick OR Projects\gateanalyzer\." “C:\Slick OR Projects\gateanalyzer\Presentation\GatePlanner.Wpf\Properties\AssemblyInfo.template” “C:\Slick OR Projects\gateanalyzer\Presentation\GatePlanner.Wpf\Properties\AssemblyInfo.cs”" exited with code 1.

This is obviously the command:

subwcrev.exe "C:\Slick OR Projects\gateanalyzer\." “C:\Slick OR Projects\gateanalyzer\Presentation\GatePlanner.Wpf\Properties\AssemblyInfo.template” “C:\Slick OR Projects\gateanalyzer\Presentation\GatePlanner.Wpf\Properties\AssemblyInfo.cs”"

Trying to sign in to Visual Studio shows the error: The component 'Microsoft.VisualStudio.Services.Client.Controls.BrowserWindow' does not have a resource identified by the URI '/Microsoft.VisualStudio.Services.Client;component/controls/browserwindow.xaml

$
0
0

I downloaded the Azure SDk for Visual Studio 2013. Now, when I attempt to sign in to visual studio via the link in the top right corner, I get the below error:

Any advise would be appreciated, as I am unable to login!


Andrew Tilston

PrintForm Component

$
0
0

I understand that the Express Editions are free to use and develop windows apps – as Visual C++ 2008 Express Edition, for example.

In this case, if I develop an application in Visual C++ 2008 Express Edition, may I use for free the supplement Prin Form Component 1.0 and distribute it to the user of the application I developed for windows? .. or do I need a license in order to use the Print Form Component?

The Print Form Component would have significant functionality in the future developed program.

Thank you.

Visual Studio 2015 MVC 5 web application error when adding empty controller scaffold

$
0
0

I am using VS 2015 Enterprise Update 2.  I created a new empty MVC web application.  In the Controllers folder I try to add a new Controller (Add-> Controller...).  The Add Scaffold window opens I select "MVC 5 Controller - Empty" click Add and then I get the error "There was an error running the selected code generator: 'Failed to render template because of the following errors: Compiling transformation: Missing compiler required member 'System.Runtime.ComplierServices.CompilationRelaxationsAttribute.ctor' ..." 

Here's what I've tried so far:

- Uninstall-Package EntityFramework -Force

- Install-Package MvcScaffolding.VS2015

- I repaired VS (twice)

Please help!

Re-open files after project loaded

$
0
0
Hey, I switched to VS recently and I found that projects managment in VS pretty inconvenient. I work on a few projects at same time and I have to switch between them 5 times per day. They all included in one solution. When I unload one project and load another one, my previously opened files doesn't open and I have to open them manually every time. This buggs me out, cuz my previous IDE had much more convenient projects managment - you just double click on a project in list and it opens with all previously opened files. Is there a way to make VS act same way? I tried to find an extension for this but no luck so far. My version of VS is Community 2015.

Visual Studio Community 2015

$
0
0

I have an hp EliteBook laptop with Windows 7 Professional Service Pack 1 (Processor AMD PRO A12-8800B R7, 12 computer cores 4C+8G 2.10 GHz) 64-bit

I have and use Visual Studio 2010 Professional Version 10.0.40219.1 SP1Rel.

Can I install and use Visual Studio community 2015 in my laptop?  I would like to use it to develop standalone apps, web apps, responsive/adaptive websites, Single Page Apps, Hybrid mobile apps and Native Windows Phone apps.  Is this possible or do I need Windows 10?

Newbie question Re: data bound controls

$
0
0

Hello

I am attempting to program a tool/utility for some users to make their life easier. 

Just want to know the following (I am using express 2015):
If I use a datagridview control with data binding (to sql table), to display information

is the default behavior that the users will be able to make changes to the sql table?
I just want to give the ability to search data, and print - no updates should ever take place

Thanks for any help

Fortran DLL settings in visual studio/Intel

$
0
0

I have Fortran code that was made into a dll using Compaq visual fortran some years ago.  I made a change ot the fortran, and now need to recompile into a dll using visual Studio & Intel fortran.

The application worked so long as the following settings were used in Compaq:

In Project/Settings.../Fortran:

a. Category = external procedures: 1) argument passing conventions: default*; 2) external name interpretation: uppercase*; 3) string length argument passing: after string arg*

b. Category = Fortran language: a) name interpretation: upper case*

c. Category = Libraries: a) reentrancy support: none; b) Use run-time library: Debug single-threaded* (and verify 'libs:static' was listed in project options.

My question is: where are these settings and options located in Visual Studio/Intel Fortran?

Thanks.

VS not showing descriptions for methods or classes when hovering or using F12

$
0
0

Hello,

I wanted to mention I am also having the same problem as another thread but I can't post links yet. I am unable to see descriptions of methods or classes when I hover over them or use F12 on them. Per the thread I was looking at I tried resetting all setting in my version of VS and when that didn't work I figured I would just try repairing VS. After the repair I'm still not seeing descriptions.

My version of VS:

Microsoft Visual Studio Express 2015 for Windows Desktop
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Desktop Express

Visual Basic 2015   00325-20000-00000-AA518
Microsoft Visual Basic 2015

Visual C# 2015   00325-20000-00000-AA518
Microsoft Visual C# 2015

Visual C++ 2015   00325-20000-00000-AA518
Microsoft Visual C++ 2015

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

NuGet Package Manager   3.4.3
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   14.0.60311.1
Microsoft SQL Server Data Tools

My issue came up when I was trying to look more at the description of IsolationLevel options. The ReadCommitted just appears as 4096 when I highlight it for the description and F12 gives me no more summaries or helpful information.

I hope this is enough information to get some help or if this is something silly to fix because while I don't mind going to msdn all the time for a description I'd like to be able to hover for a quick refresh.

Policy of license of Visual studio Ultimate

$
0
0

Hello ,
I am not totally clear about your policies of license of visual studio Ultimate-

If We have no Microsoft Visual Studio software installed on our local machines and using remote desktop if we work on a client machine which has Visual Studio Ultimate installed (which already have license), do we also supposed to buy the license for Visual Studio Ultimate?

Viewing all 21115 articles
Browse latest View live


Latest Images

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