visual-studio-2019

How to get active IWpfTextView in VS2019 extension (MEF)

安稳与你 提交于 2021-01-07 03:07:27
问题 I'm trying to get the active C# Editor IWpfTextView in VS2019 extension. I'm using a small MEF service to inject a view into the VSAsyncPackage. But it is not very reliable - sometimes the injected view is wrong (e.g. from another view) or missing. Here is the service: public interface IActiveViewAccessor { IWpfTextView? ActiveView { get; } } [Export(typeof(IWpfTextViewConnectionListener))] [Export(typeof(IActiveViewAccessor))] [ContentType("text")] [TextViewRole(PredefinedTextViewRoles

How to get active IWpfTextView in VS2019 extension (MEF)

风流意气都作罢 提交于 2021-01-07 03:04:26
问题 I'm trying to get the active C# Editor IWpfTextView in VS2019 extension. I'm using a small MEF service to inject a view into the VSAsyncPackage. But it is not very reliable - sometimes the injected view is wrong (e.g. from another view) or missing. Here is the service: public interface IActiveViewAccessor { IWpfTextView? ActiveView { get; } } [Export(typeof(IWpfTextViewConnectionListener))] [Export(typeof(IActiveViewAccessor))] [ContentType("text")] [TextViewRole(PredefinedTextViewRoles

'System.Dynamic.ExpandoObject' does not contain a definition for 'UserName' in Specflow C#

时光毁灭记忆、已成空白 提交于 2021-01-07 02:35:27
问题 I am getting an error that says: 'System.Dynamic.ExpandoObject' does not contain a definition for 'UserName' Here is my code also it Specflow, Selenium, and Visual Studio Scenario Feature: OasisLogin Login to Oasis application Scenario: Perform Login to Oasis application site Given I launch the application #And I click login link And I enter the following details | UserID | Password | | admin | password | And I click login button Then I should see Dashboard details link Step Definition

How can I fix “& requires l-value” [closed]

蹲街弑〆低调 提交于 2021-01-07 01:42:58
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 21 days ago . Improve this question So, I created a project and copied this tutorial in it. When I tried to run it, it gave me this error: C2102 & requires l-value at m_commandList->ResourceBarrier(1, &CD3DX12_RESOURCE_BARRIER::Transition(m_renderTargets[m_frameIndex].Get(), D3D12_RESOURCE_STATE_PRESENT, D3D12

Texturing a cube with different images using OpenGL

不想你离开。 提交于 2021-01-05 07:32:39
问题 I have a project from school I'm currently working on and I need to texture a non-rotating cube showing just 3 faces. I've tried doing it on my own but I only get one image on all the 3 faces. I don't know if it's my method that's wrong or the way I'm loading the remaining two images. I would really appreciate help from anyone. This is how I load my textures GLuint VAO, VBO; glGenVertexArrays(1, &VAO); glGenBuffers(1, &VBO); glBindVertexArray(VAO); glBindBuffer(GL_ARRAY_BUFFER, VBO);

Texturing a cube with different images using OpenGL

感情迁移 提交于 2021-01-05 07:28:56
问题 I have a project from school I'm currently working on and I need to texture a non-rotating cube showing just 3 faces. I've tried doing it on my own but I only get one image on all the 3 faces. I don't know if it's my method that's wrong or the way I'm loading the remaining two images. I would really appreciate help from anyone. This is how I load my textures GLuint VAO, VBO; glGenVertexArrays(1, &VAO); glGenBuffers(1, &VBO); glBindVertexArray(VAO); glBindBuffer(GL_ARRAY_BUFFER, VBO);

Visual Studio 2019 ignoring tab preference

自闭症网瘾萝莉.ら 提交于 2020-12-30 08:50:30
问题 I was programming in VS2019 this morning before going about my day. When I sat down in the evening to keep programming, I realized that it has suddenly been placing spaces instead of tabs! My preferences are set for every language to place tabs instead of spaces, and has been doing so in previous days. I updated VS to make sure, but the problem persists - regardless of my preference settings, out of nowhere spaces are being placed instead of tabs. PS: I am aware that this question has already

How to build GTK+ application with Visual Studio 2019?

ε祈祈猫儿з 提交于 2020-12-30 03:04:00
问题 I installed GTK+ 3.0 as described on https://www.gtk.org/download/windows.php I cloned the git and typed vcpkg install gtk:x64-windows Everything build well. I then opened Visual Studio 2019 and tried to create a console application using C++. I changed the project so it compiles in C instead of C++. However, when I type #include <gtk/gtk.h> it doesn't show on auto complete. I'm not sure where to go from here. Can someone give me any pointers? I want to build a statically linked gtk-3.0

How to build GTK+ application with Visual Studio 2019?

余生颓废 提交于 2020-12-30 02:59:05
问题 I installed GTK+ 3.0 as described on https://www.gtk.org/download/windows.php I cloned the git and typed vcpkg install gtk:x64-windows Everything build well. I then opened Visual Studio 2019 and tried to create a console application using C++. I changed the project so it compiles in C instead of C++. However, when I type #include <gtk/gtk.h> it doesn't show on auto complete. I'm not sure where to go from here. Can someone give me any pointers? I want to build a statically linked gtk-3.0

How do I install a previous version of Visual Studio 2019 Community?

╄→гoц情女王★ 提交于 2020-12-29 13:15:08
问题 I found a bug in the latest version of VS Community (16.7.0) which is preventing my solution from building, so I need to roll back to 16.6.5. However the only download link I can find has downloads for only Enterprise and Professional, not Community. How do I downgrade my installation of VS Community? It's completely unusable for me now because one of my solutions is failing to build even though there are no compile errors. 回答1: While the link shows Professional and Enterprise, I've tried it