visual-studio-2017

What does the .dtbcache file do?

白昼怎懂夜的黑 提交于 2021-01-02 04:55:12
问题 I have a C# WinForms project, which I am working on in Visual Studio 2017 (although it was originally created in the 2015 version). I don't recall having done anything special, but it has added a file called .dtbcache , that it wants to add to git. The file has no extension, and a Google search doesn't show any results. The file is located in ..\repos\myprject\.vs\MyProject\DesignTimeBuild . Which means that the "dtb" part of the file name probably means d esign t ime b uild, but that doesn't

Integration testing ASP.NET Core with .NET Framework - can't find deps.json

独自空忆成欢 提交于 2020-12-29 05:30:03
问题 I have a ASP.NET Core Web API project targeting .NET Framework 4.7 that I'm trying to write integration tests for. I created a unit test project using Visual Studio Add new project and then the Unit Test Project (.NET Framework) template. I added the Microsoft.AspNetCore.Mvc.Testing NuGet package to the test project, and I have the following test: using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TestRepro.Tests

Integration testing ASP.NET Core with .NET Framework - can't find deps.json

别说谁变了你拦得住时间么 提交于 2020-12-29 05:29:59
问题 I have a ASP.NET Core Web API project targeting .NET Framework 4.7 that I'm trying to write integration tests for. I created a unit test project using Visual Studio Add new project and then the Unit Test Project (.NET Framework) template. I added the Microsoft.AspNetCore.Mvc.Testing NuGet package to the test project, and I have the following test: using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TestRepro.Tests

Integration testing ASP.NET Core with .NET Framework - can't find deps.json

吃可爱长大的小学妹 提交于 2020-12-29 05:29:38
问题 I have a ASP.NET Core Web API project targeting .NET Framework 4.7 that I'm trying to write integration tests for. I created a unit test project using Visual Studio Add new project and then the Unit Test Project (.NET Framework) template. I added the Microsoft.AspNetCore.Mvc.Testing NuGet package to the test project, and I have the following test: using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TestRepro.Tests

Visual Studio 2017: vcvars for toolset v140

本小妞迷上赌 提交于 2020-12-29 04:12:06
问题 I installed Visual Studio 2017 and toolsets v140 and v141 . To work with v140 toolset, I need to set the necessary environment via vcvars . However, running the necessary vcvars , I get various errors. I am taking vcvars from this directory - C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC - as I need to initiate the environment for the work with v140 toolset. If I run vcvarsall , for example, then vcvarsall.bat x86 or vcvarsall.bat x86_amd64 - and I get the following error:

Visual Studio 2017: vcvars for toolset v140

北慕城南 提交于 2020-12-29 04:11:51
问题 I installed Visual Studio 2017 and toolsets v140 and v141 . To work with v140 toolset, I need to set the necessary environment via vcvars . However, running the necessary vcvars , I get various errors. I am taking vcvars from this directory - C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC - as I need to initiate the environment for the work with v140 toolset. If I run vcvarsall , for example, then vcvarsall.bat x86 or vcvarsall.bat x86_amd64 - and I get the following error:

Uncaught DOMException: Failed to execute 'pushState' on 'History': function () { [native code] } could not be cloned

最后都变了- 提交于 2020-12-12 02:44:27
问题 I am creating a small web app in reactjs template provided by visual studio 2017. I am stuck in a situation where i want a function to be passed as a state to a child component and then invoke that function through child component. I have a header component where i have a method called setLogInTrue() which i want to pass to my SignIn component. Below is my code:- Header.tsx class HeaderState { isLoggedIn: boolean; } export class Header extends React.Component<HeaderProps, HeaderState> {

Visual Studio 2017 - Specify an App Icon

坚强是说给别人听的谎言 提交于 2020-12-08 07:14:08
问题 I'm trying to add my icon as the default application icon in my Visual Studio project. The Microsoft documentation says to click on Project -> Project Properties , and then select the Application tab in the Project Designer . When I click on Project -> Project Properties , what comes up is not the Project Designer , it's (Project Name) Property Pages . As you can see in the photo below, there is nothing even remotely related to an "Application" tab. Image of Project Property Pages How can I

ASP.NET Core Scaffolding does not work in VS 2017

余生长醉 提交于 2020-12-08 05:36:47
问题 I have a beginner ASP.NET Core project in Visual Studio 2017, and I am at the scaffolding step of the HelloWorld. The Scaffolding does not work, I tested on a first computer, then at a second one... when I try to generate a controller with views , it gives the following error on the first machine: Microsoft Visual Studio Error There was an error running the selected code generator: 'Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio

ASP.NET Core Scaffolding does not work in VS 2017

我与影子孤独终老i 提交于 2020-12-08 05:36:15
问题 I have a beginner ASP.NET Core project in Visual Studio 2017, and I am at the scaffolding step of the HelloWorld. The Scaffolding does not work, I tested on a first computer, then at a second one... when I try to generate a controller with views , it gives the following error on the first machine: Microsoft Visual Studio Error There was an error running the selected code generator: 'Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio