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

Replacement for Microsoft.cpp.x64.user for systemwide settings

$
0
0

Up to and including Visual Studio 2017, we had been setting the default for all projects to /W3 /WX to override the installed defaults of /W1 /WX-.  This had been done by use of the user props file typically found at:

C:\Users\[Username]\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.x64.user.props

As noted here: https://docs.microsoft.com/en-us/cpp/build/create-reusable-property-configurations?view=vs-2019 this file has been deprecated in VS 2019, and with good reasons.

What mechanism exists to replace the .user.props file, preferably with something that will be system wide and can be installed as part of the rollout of Visual Studio on a new computer.  The intention here is to be able to do this once so that it's"set and forget" and it'll work for all projects retrieved  from the corporate git server, as well as any projects that might be created by the user.

Having a .props file we have to manually insert into every project is not an option, there are simply too many projects involved for that to be viable.  It must have the same "automatic use" semantics as the .user.props file: install on the machine, and it starts working immediately, with no changes to the project file.



Visual Studio 2019 preview 16.1.0 doesn't auto complete, but does gives suggestions

$
0
0
Hi, I recently updated my Visual Studio and I used it as usual, but suddenly something happend and it doesn't auto completes me anymore. for example: if I write "using Syst" and then SPACE, it doesn't auto complete, but it does suggest. how can I fix it? thanks.

Visual Studio Installer Project - Custom action wont run

$
0
0

Hi I have created a Visual Studio Installer Project where i have added the primary output from my other projects to the installer.

After the install i want to execute an .EXE that i distribute with the application. The installer never runs the EXE however.

I have added it to Custom Action -> Install and tried different combinations for condition (blank, true, True, 1, "True"="True").

Is there any requirements for the EXE that i have missed?

Click on the Name on Listbox to fill Textboxes with Username and Password of particular user from SQL database

$
0
0

I want when click on the Name Listed on a Listbox from the database to fill Textboxes with Username and Password of particular user from SQL database.

I am able to see Names stored on the database on the listbox but when i click on the name its unable to fill the Textboxes.

Here is the code that fills the Listbox with data from database (NOTE: I am able to view a list of names on the Listbox)

 Public Sub ListBox()
        Try
            If con.State = ConnectionState.Open Then
                con.Close()

            End If
            con.Open()
            Dim cmd As SqlCommand
            cmd = con.CreateCommand()
            cmd.CommandText = "SELECT * FROM Admin"
            Dim Reader As SqlDataReader
            Reader = cmd.ExecuteReader
            While Reader.Read
                lbAdmin.Items.Add(Reader.Item("Full Name"))
            End While
        Catch ex As Exception
        End Try
    End Sub

And here is the code I want to fill the Textboxes after clicking on a name in a Listbox (NOTE: This is not working). I really dont know where I am going wrong, please help.

Private Sub lbAdmin_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles lbAdmin.SelectedIndexChanged
        Try
            If con.State = ConnectionState.Open Then
                con.Close()
            End If
            con.Open()

            Dim cmd As SqlCommand
            cmd = con.CreateCommand()
            cmd.CommandText = "SELECT * FROM Admin"
            Dim Reader As SqlDataReader
            Reader = cmd.ExecuteReader
            While Reader.Read
                txtfullname.Text = Reader.GetString("Full Name")
                txtusername.Text = Reader.GetString("Username")
                txtpassword.Text = Reader.GetString("Password")
            End While
        Catch ex As Exception
        End Try
    End Sub

Debug using F10 not working

$
0
0

I can't step through my ASP.NET MVC code using F10 or F11. Any ideas?

Pale, pale font

$
0
0

I am trying to debug a C++ source code in Visual Studio 2017, and the font I have to read is so pale I can barely see anything. What is the idea? I am not a young chicken, and it is a barrier for me. How can I increase the contrast and the font size?

The same is here in the forum post. Unreadable.

- MyCatAlex

Can I use Visual Studio 2019 Professional in enterprise company?

$
0
0

We use an opensource IDE to develop in our company for development. The application is quite large and the IDE is very slow to debug in, so we use Visual Studio 2017 Express just to debug the application. The IDE is also becoming too slow as the project grows. I am tired of switching between applications, so I was considering to buy my own Visual Studio 2019 Professional standalone license (because I need plugin support, which is not available in Express versions) and use it to develop at work for the company. I cannot use Community version, because the company is too big.

Can I use Professional version in our company, or would I need Enterprise license? Or does the enterprise version just have some "extras" for enterprise companies and it is ok to use professional?

Is there full Visual Studio 2019 Professional standalone license I can read? I have been looking, but it is impossible to find it anywhere at the website.

Thank you.

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.

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

Unable to Create .Net Project in Visual Studio 2017 with .Net Core 2.1

$
0
0
I have Mircosoft Visual Studio Enterprise 2017 Version 15.9.11 and .Net Framework 4.7.02053.
I have insatalled .Net Core SDK 2.1.603 and Runtime 2.1.10.
Also I have insatalled AWS .Net SDK for Visual Studio 2017 as I need to build a AWS Lambda Application.
When I try creating the application for AWS Lambda with Target Framework set as netcoreapp2.0 or netcoreapp2.1 
I am getting error 'The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.'.
I googled around this issue and tried all the suggestions given but none of them have worked.
Looking for a resolution for this issue.

Create a C++/WinRT UWP library Visual Studio 2019

$
0
0

It is unclear to me what the appropriate project Visual Studio 2019 template is to make a C++/WinRT UWP library. I wrote a simple UWP app that scanned for Bluetooth Low Energy advertisements. I needed all this special C++/WinRT infrastructure to access the Bluetooth APIs. Now what I would like to do is take that Bluetooth code and make a library out of it.

How do I do that? It was so straightforward when using basic C++.

When using Visual Studio 2019 and filtering on C++ and library, the only options I get for a static or dynamic library that supports UWP is C++/CX. There are no options for C++/winRT.

Use of kanban

$
0
0

Can you point me to instructions for how to enable kanban in Team Foundation Server 2017? I am wondering...Thank you.

Unable to connect to live share using Proxy Server

$
0
0

I set the http_proxy and https_proxy environment variables globally.

However, the agent log file says

[2019-04-15 14:06:17.897 Agent.Proxy I] Proxy settings from env variable: http_proxy was null and https_proxy was null

I am using Visual Studio version 16.0.1

How to ignore compiler warnings from makefile build?

$
0
0
I want to ignore a specific compiler warning.  I'm building around 80 DLLs through a makefile.  How do I specify to ignore a specific compiler warning through VS Makefile build?  (I know how to do this by adding a pragma warning to each file, but that's too repetitive.)

Winforms App in VS2015 Using SQL Server 2012

$
0
0

I've opened this app in VS2015 on my computer many times but the other day I went to make a change to one of my datasets and got the following error "An unexpected  error occurred in the .Net Framework Data provider for SQL Anywhere 16.  I don't even have SQL Anywhere installed on my PC.  I get the same error when I try to connect to a database, but I can preview data in any of my datasets and connect to my server without issue.  Has anyone ever had this happen?

I am at a loss as to what has changed as this was working as of a few weeks ago.

Thanks in Advance!


Can I use Visual Studio 2019 Professional in enterprise company?

$
0
0

We use an opensource IDE to develop in our company for development. The application is quite large and the IDE is very slow to debug in, so we use Visual Studio 2017 Express just to debug the application. The IDE is also becoming too slow as the project grows. I am tired of switching between applications, so I was considering to buy my own Visual Studio 2019 Professional standalone license (because I need plugin support, which is not available in Express versions) and use it to develop at work for the company. I cannot use Community version, because the company is too big.

Can I use Professional version in our company, or would I need Enterprise license? Or does the enterprise version just have some "extras" for enterprise companies and it is ok to use professional?

Is there full Visual Studio 2019 Professional standalone license I can read? I have been looking, but it is impossible to find it anywhere at the website.

Thank you.

Azure DevOps 2019 Web portal 500 error

$
0
0
TF53010: The following error has occurred in an Azure DevOps component or extension:
Date (UTC): 4/10/2019 2:06:28 AM
Machine: *
Application Domain: /LM/W3SVC/2/ROOT/tfs-28-131993267214787002
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host: fb9e841e-0252-4ef4-88c1-213f5aa6d28e (TEAM FOUNDATION)
Process Details:
  Process Name: w3wp
  Process Id: 12028
  Thread Id: 9424
  Account name: *
Detailed Message: TF30065: An unhandled exception occurred.
Web Request Details
    Url: http://*:8080/tfs [method: GET]
    User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
    Headers: not available
    Path: /tfs
    Local Request: True
    Host Address: 3.102.192.12
    User: * [authentication type: Negotiate]

Exception Message: Object reference not set to an instance of an object. (type NullReferenceException)
Exception Stack Trace:    at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Plugins.LocalContributionSource.QueryProviders(IVssRequestContext requestContext)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.ContributionService.GetContributionHierarchy(IVssRequestContext requestContext)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.ContributionService.QueryContributionsForType(IVssRequestContext requestContext, String contributionTypeId)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.ContributionService.QueryContributionsForType[T](IVssRequestContext requestContext, String contributionType, String associatedDataName, IEnumerable`1& contributions, T& associatedData)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.FeatureManagement.ContributedFeatureService.GetFeaturesLookup(IVssRequestContext requestContext)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.FeatureManagement.ContributedFeatureService.GetFeatureClaims(IVssRequestContext requestContext)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.ContributionClaimService.GetClaimsInternal(IVssRequestContext requestContext)
   at Microsoft.VisualStudio.Services.ExtensionManagement.Sdk.Server.ContributionClaimService.HasClaim(IVssRequestContext requestContext, String claim)
   at Microsoft.TeamFoundation.Server.WebAccess.TfsMailSettings..ctor(IVssRequestContext requestContext)
   at Microsoft.TeamFoundation.Server.WebAccess.ConfigurationContext..ctor(IVssRequestContext tfsRequestContext, RequestContext requestContext)
   at Microsoft.TeamFoundation.Server.WebAccess.PageContext..ctor(WebContext webContext)
   at Microsoft.TeamFoundation.Server.WebAccess.WebAccessModule.CreatePageContext(RequestContext requestContext)
   at Microsoft.TeamFoundation.Server.WebAccess.WebContextFactory.GetPageContext(RequestContext requestContext, Boolean create)
   at ASP._views_shared_main_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer)
   at Microsoft.TeamFoundation.Server.WebAccess.TfsViewPage`1.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at Microsoft.TeamFoundation.Server.WebAccess.TfsViewPage`1.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Quick Action in typescript uses absolute path instead of relative

$
0
0

Hello,

I recently started using VS2017 Community instead of the Enterprise version. In the past, when I was missing an import, the Quick Action feature helped me a lot, as it imported the missing module using relative path.

Now, using the Community version, Quick Action also imports missing modules, but using the absolute path. So, for example, while it used to be import { Module } from '../../models/Module', it is now added as import {Module } from 'ClientApp/models/Module';

The latter does not work correctly, because the app is built using WebPack. Is this a result of the downgrade, or I'm missing something?

Thanks! 

Text selection delay in Visual Studio

$
0
0

Hello everyone,

Im using Visual Studio Ultimate 2013 ver12.0.21005.1 (net framework 4.7), on desktop PC everything works fine, but on Dell Inspiron P75F (i7 7500U, RAM 8gb DDR4, GPU radeon 530 4gb) I have problems when it comes to source code mouse selection. Im using mouse very much and this is very annoying.

Example, I have this text in my source code:

mo=985611888;

If i click on first 9, and drag mouse to the right, it will not select single char or any char until it pass 1 second or at least 5-6 chars... then it starts selecting/highlighting, or if i click before m, and drag mouse down, on empty line, it does not select whole line, as it does on desktop PC.

Can someone clarify why this different than on desktop PC?

When I open the very same small project on desktop pc, im able to select with mouse any char in source code without any delay...

Laptop is brand new, so it must have been some settings in question.

Im new to laptops, so if there is some trick, or keyboard shortcut beware then I may not know about it.

What I tried:

- Change usb port for mouse to reinstall driver

- Insert/Overwrite

- Disable touch pad while mouse is connected, change sensitivity

- Uninstall Visual studio then install again

- Disable / enable hardware acceleration Visual Studio - Tools - Options - Environment - Visual Experience

- Disable extensions Visual Studio

Thanks in advance for help and sorry if placed in wrong category, this is first time im writing on msdn, I cannot find answer on google after 2 days...

Parser Error Message: Could not load type 'MvcInterop.InteropMasterPage'.

$
0
0

I am receiving this error when running an ASP.NET MVC 5.27 application. I am running Visual Studio 2017. I have all the web developer tools installed for Visual Studio.

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load type 'MvcInterop.InteropMasterPage'.

Source Error: 


Line 1:  <%@ Master Language="C#" AutoEventWireup="true" Inherits="MvcInterop.InteropMasterPage" %>
Line 2:  
Line 3:  <%--@ Register TagPrefix="NgControls" TagName="DifferentRegionBar" Src="~/Controls/DifferentRegionBar.ascx" --%>

Source File: /Global.Master    Line: 1 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0

Viewing all 21115 articles
Browse latest View live


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