visual-studio

Can't Add ADO.NET Entity Data Model to .NET Core 2.1 Project

会有一股神秘感。 提交于 2021-02-18 20:05:52
问题 The Issue... As the title states, I've installed the .NET Core 2.1 SDK and created a new .NET Core 2.1 project. When I go to Project > Add Item... > Data , I do not have the ADO.NET Entity Data Model option. I am using Visual Studio 2017 15.7.3 , which I've installed only hours ago. The Error and Warning logs are clean. Any assistance is appreciated. What I've done so far... Researched. You'll notice I've pulled most of my attempts to solve this issue from primarily these three resources:

Read SslStream continuously in C# Web MVC 5 project

我只是一个虾纸丫 提交于 2021-02-18 18:43:56
问题 tl;dr: "I would like to read an SslStream continuously in C# but I can't figure out the best way." Some background: I'm getting stock data from a stream that I would like to present in a web interface. The stream sends a heartbeat every 5 seconds and you can also subscribe/unsubscribe to stock prices and news etc. https://api.test.nordnet.se/next/2/api-docs/docs/feeds Currently I'm using SslTcpClient from MSDN example to read and write to the stream and it works OK. https://msdn.microsoft.com

Not able to build Visual Studio Database Project targeting Azure SQL Database when using AT TIME ZONE

房东的猫 提交于 2021-02-18 17:09:31
问题 We have a Visual Studio Database Project that we are trying to move to Azure SQL Database. Some of our views use AT TIME ZONE which is supported in Azure SQL Database, but when I switch the database Target Platform to Microsoft Azure SQL Database in the project properties, it fails to build with error: Error: SQL46010: Incorrect syntax near TIME. I have connected directly to the database in Azure and I can use AT TIME ZONE , but I cannot create or publish a DACPAC file from my project. This

Why does the C++ standard allow std::max_align_t and __STDCPP_DEFAULT_NEW_ALIGNMENT__ to be inconsistent?

倾然丶 夕夏残阳落幕 提交于 2021-02-18 11:54:56
问题 In Visual Studio, when compiling 64-bit: sizeof(std::max_align_t) is 8 __STDCPP_DEFAULT_NEW_ALIGNMENT__ is 16 So although std::max_align_t indicates that implementations of new should return pointers aligned to a multiple of 8 bytes, allocations with an alignment requirement of 16 bytes don't call the void* operator new (std::size_t count, std::align_val_t); method but call void* operator new (std::size_t count); (see https://en.cppreference.com/w/cpp/memory/new/operator_new) and expect them

Should each project being signed with a separate Strong Name Key (.snk)?

让人想犯罪 __ 提交于 2021-02-18 09:59:21
问题 Within my Visual Studio solution I have a web site and 4-5 class library projects which are referenced., some of which reference external third party assemblies as well. I've been given the task of signing the assemblies for these projects. My understanding is that the purpose of signing is that not everyone being able to use our assembly without providing its public key and version details, right? Should I use one single Strong Name Key (.snk) to sign all the assemblies of these projects or

Visual Studio - “Unknown Compiler version” after upgrading

别说谁变了你拦得住时间么 提交于 2021-02-18 09:54:12
问题 I have a Visual Studio 2015 C++ project which I wanted to upgrade to VS 2017. I had already denied the automatic prompts to upgrade my project when I first opened my project in VS 2017 (wasn't sure I wanted to upgrade at the time) so I couldn't update my project that way. Instead, I just went to my project's: Properties->Configuration Properties->General And in there I updated the 'Platform Toolset' option to 'Visual Studio 2017 (v141)' and also changed the 'Window SDK Version' to 10.0.16299

Disabling SSIS Package Validation when Loading a Package in the VS Designer

╄→гoц情女王★ 提交于 2021-02-18 09:02:46
问题 I have a few SSIS packages that are deployed to a SQL 2005 Server and are subsequently designed and maintained in Visual Studio 2003. When I open any of the BIDS projects, followed by one of the packages, the designer always validates every Data Flow and Task object. Usually, this isn't a problem. However, under certain circumstances a system account that we use for connecting and export data from an AS400 will not validate properly. Since I'm exporting a TON of tables, each Data Flow object

CMake source_group() not working correctly with hierarchical project setup

假装没事ソ 提交于 2021-02-18 06:28:30
问题 After a change to make a CMake project have hierarchical folder management, source_group() no longer seems to be working correctly. CMake just dumps everything into the default filters. I've tried various regexes to get the relative file path from the parent for every source file and even hard coding the source files in the parent CMakeLists.txt just to see if that was the issue. I've also tried regenerating the VS project a couple times after these changes. Here's sample files for your

CMake source_group() not working correctly with hierarchical project setup

北战南征 提交于 2021-02-18 06:26:50
问题 After a change to make a CMake project have hierarchical folder management, source_group() no longer seems to be working correctly. CMake just dumps everything into the default filters. I've tried various regexes to get the relative file path from the parent for every source file and even hard coding the source files in the parent CMakeLists.txt just to see if that was the issue. I've also tried regenerating the VS project a couple times after these changes. Here's sample files for your

ResolveComReference task could not be loaded

不问归期 提交于 2021-02-18 06:02:04
问题 Win7, VS2017, ASP Net core app, target framework is 4.6. When I try to build my project with CLI (it is needed before dotnet commands calling) the error occurs: C:...\Microsoft.Common.CurrentVersion.targets(2547,5): error MSB4062: The "Microsoft.Build.T asks.ResolveComReference" task could not be loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the declaration is correct, that the assembly and all its