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

>VS Community 2019 .sbr files

$
0
0

VS Community 2019 under Windows 7 Pro SP

VC++ MFC project

I installed VS 2019 Community C++ workspace and copied whole project folder from VS2017 VC++ Commmunity into VS2019 projects directory.

Building for Windows SDK 10.0.171134.0 and platform toolset vs2017 (v141) builds exe without complaints.

Building for the same Win SDK and toolset vs2019 (v142) builds exe file and brings several messages:

I tried to rebuild 2019 project, clear it and build again, rebuild whole solution to no avail. The same minor errors.

Any help?


Visual Studio 2017 Extensions and Update "cannot find setup engine instance".

$
0
0

After a new install of VS 2017, Tools->Extensions and Updates results in an error dialog "cannot find setup engine instance".

At this point in time, VS 2017 is pretty unusable because of this.

Coded UI test running Powershell vs Coded UI test running TFS build

$
0
0

Hi,

  I've created a Coded UI test that runs on VS2017. It works if I launch VS2017 as an administrator.

ie. I'm able to launch and perform the mouse.click() operations. 

  I wanted to create nightly builds for these Coded UI tests. I've created a build in TFS which eventually launches the following command

"vstest.console.exe C:\agent\xxxxxxxx\test.dll"

The tests are executed but failed due to launch certain programs or failed the mouse.click() operations.

However, if I use Powershell as administrative mode and keyed in the same command. I'm able to run the test

Created Project Template, cannot edit a file and put it back into the .zip. VS2017

$
0
0

I created a Project template and named it StandardProject. It works well, but I need to tweak a Using statement. In Windows Explorer (Microsoft Windows 7 Enterprise, Service Pack 1, 64-bit) I drag out FormMain.cs make my edit, and drag it back in. I select Copy and Replace. I get the message that the zip file is invalid or corrupt. Yet it still works fine in all respects (except this).

I have no instances of VS open, and I even rebooted the computer, but the problem remains.

I do not believe the zip file is invalid or corrupt, or I couldn't still use it as a template, and I wouldn't be able to see and drag(copy) out files.

What is going on, and how can I put my edited file back in?

Thank you


Jon Jacobs, There are 10 kinds of people: those who understand binary and those who don't

WPF designer - Access is denied 0x80070005

$
0
0

Hi,

Have a problem with a new installation of Visual Studio 2017 - Version 15.9.9 on new notebook.

Installation did not have any problem. Loaded project I am working on without a problem.

But WPF designer is showing the next error

System.UnauthorizedAccessException
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at Microsoft.VisualStudio.DesignTools.Utility.AssemblyHelper.LoadFile(String path, Action`1 logger)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.AssemblyService.CreateClassicShadowCopy(String assemblyPath, String projectPath, ReferenceAssemblyContext context, Boolean useReflectionOnlyLoad)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.AssemblyService.ResolveShadowCopyAssembly(String assemblyPath, String projectPath, ReferenceAssemblyContext context, Boolean useReflectionOnlyLoad)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.AssemblyService.ResolveAssembly(String assemblyPath, String assemblyFullName, String projectPath, ReferenceAssemblyContext context, Boolean useReflectionOnlyLoad)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.GetAssemblyInformationInternal(String path)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String assemblyLocation)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.InternalAddAssemblyReference(String assemblyLocation)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.UpdateAssemblyReferences(IEnumerable`1 referencesToUpdate)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.Initialize()
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject project)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyService.CreatePlatformReferenceAssemblyResolver(IHostProject project)
   at Microsoft.VisualStudio.DesignTools.Designer.Documents.Project.ProjectContextManager.CreatePlatformReferenceAssemblyResolver(IHostProject project)
   at Microsoft.VisualStudio.DesignTools.Designer.Documents.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)
   at Microsoft.VisualStudio.DesignTools.Designer.Documents.Project.ProjectContextManager.<GetContextsInActiveSolution>d__94.MoveNext()
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.ReplaceStyleTemplateCommand.ResolveDefaultStyle(SceneNode targetElement, Object defaultStyleKey, Boolean allowDefaultStyle, DocumentNode& currentStyle, Boolean& isThemeStyle, IList`1& auxiliaryResources)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.ReplaceStyleTemplateCommand.ProvideCurrentStyle(SceneNode targetElement, IType targetType, PropertyReference targetPropertyReference, Boolean allowDefaultStyle, IList`1& auxiliaryResources)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.EditCopyOfStyleCommand.get_IsEnabled()
   at Microsoft.VisualStudio.DesignTools.Utility.Commands.Command.GetProperty(String propertyName, Object defaultValue)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.ReplaceStyleTemplateCommand.GetProperty(String propertyName)
   at Microsoft.VisualStudio.DesignTools.Utility.Commands.CommandTarget.<>c__DisplayClass21_0.<GetCommandProperty>b__0()
   at Microsoft.VisualStudio.DesignTools.Utility.ProtectionZone.DummyProtectionZone.Execute[T](Func`1 func)
   at Microsoft.VisualStudio.DesignTools.Utility.Commands.CommandTarget.GetCommandProperty(String commandName, String propertyName)
   at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneView.UpdateCommandState(IEnumerable`1 commandNames, Boolean forceRefresh)
   at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneView.SelectionManager_LateActiveSceneUpdatePhase(Object sender, SceneUpdatePhaseEventArgs args)
   at Microsoft.VisualStudio.DesignTools.Designer.ViewModel.SceneUpdatePhaseEventHandler.Invoke(Object sender, SceneUpdatePhaseEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.ViewModel.Selection.SelectionManager.FireLateActiveSceneUpdatePhase(SceneUpdatePhaseEventArgs args)
   at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneViewUpdateScheduleTask.UpdateLate()
   at Microsoft.VisualStudio.DesignTools.Utility.Scheduler.ScheduleTask.Update()
   at Microsoft.VisualStudio.DesignTools.Utility.Scheduler.SchedulingService.DispatchTasksAtPriority(DispatcherPriority priority)
   at Microsoft.VisualStudio.DesignTools.Utility.Scheduler.SchedulingService.DispatcherToken.Dispatch(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass3_0.<Main>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

The first load is fine and shows the form but as soon I want to change and of the XAML code the above error shows in designer. When clicking the option 'Click her to reload the designer' the view is showing again.

Have search for solutions but none is working or give me a clue where there problem comes from.

One solution was to remove privateregistry.bin which I did but that did not work.

Problem occurs with every view/form/usercontrol even newly created one.

Building the project is no problem and everything works.

Can someone please help me get rid of this problem?

Greetings,

Ernst Jan

Compile shortcut in Visual Studio

$
0
0
What is the shortcut to compile the current module/routine/function - the one that is currently in focus? I'm sure I could find the Compile command in a drop-down menu below 'Project', 'Build' or 'Debug' but it seems to have disappeared!  I thought it was Ctrl-F7 but that doesn't seem to work either...

Visual studio 2019 - space or not space before the closing tag

$
0
0

I use VS 2019 to upgrade a project from .NET 4.6.2 to .NET 4.8. Visual Studio 2019, in its ultimate wisdom, decided that it wants to use a slightly different xml format. While they are the same functionally, this type of behavior causes a lot of unnecessary changes my commits, and is a source of more unnecessary changes in the future.

Is there any way to force Visual Studio to use a consistent markup style?

VS Project Linker Configuration: Can macros be used in "Additional Library Directories:" field?

$
0
0

I need to define Project Linker Configuration "Additional Library Directories" field using macros. Like:

Additional Library Directories: ..\lib$(PlatformArchitecture)($PlatformToolset)

It appears it won't accept it.

Is there a way to do this?


Hector Santos, CTO Santronics Software, Inc. http://www.santronics.com


How to enable Deploy for a custom Makefile vcxproj

$
0
0

I have an executable I wish to deploy to a device via command-line tools.  I wish to deploy this executable via "Deploy Solution", and thus want to check the "Deploy" checkbox in the Configuration Manager.  This means that Visual Studio needs to think my project is "deployable".  (I'm currently using 2015 but will switch versions if something was added/fixed in a future version.

I had hoped this would be as simple as adding a Deploy Target in my vcxproj, like so:

<Target Name="Deploy"><Message Text="Hello World" /></Target>

But this is not working--that project does not have the ability to check the "Deploy" checkbox, nor is it considered if I do a Deploy Solution.  (I can build the Deploy target from the command-line with msbuild, though.)

My vcxproj is currently using Makefile as the ConfigurationType and MakeFileProj as the Keyword in the globals PropertyGroup. The Platform is set to something I made up. I'm not strongly tied to using Makefile; I'll use any project type I can which will work.  I don't even need intellisense to work for this project (I already have another vcxproj for building the code.)

(At some point in playing around with this, I did get Visual Studio to think the project was deployable! But I can't repeat that achievement.)


VS 2019 - Visual Studio Emulator for Android no longer selectable

$
0
0

I always had Visual Studio Emulator for Android as an emulator option in VS 2017, but my only option now is the prepackaged Android SDK emulator, which is still sluggish after all these years.

Some info:

- I reinstalled the VS emulator along with VS 2019 on a fresh windows installation

- The emulator runs fine, I just can't find a way to select it in the drop down for debug/release in VS

- I cannot seem to find any trace of the VS Emulator in VS 2019's menus like in VS 2017

- I obviously have Hyper-V enabled

Errors when upgrading TFS 2013 to 2018

$
0
0

Apologies if this is not in the proper forum; this is the closest that I could find.

I am attempting to test an upgrade of our TFS 2013 installation to TFS 2018.  Everything that I have seen online shows that this is possible.

Our current TFS instance is 2013 (v12.0.30324.0)  running on a Win 2008 server. It connects to a database on another server (win 2012/sql 2012).

We set up a Win 2016 server for the new front-end, which is connecting to SQL server 2016 (currently latest build, 2016 sp2: 13.0.5292.0). The database has been successfully backed up from the existing instance and restored to the new 2016 sql instance.

I start the TFS installation process, select that I will be doing an upgrade, and when it asks to specify a Team Foundation Server configuration database, I enter the server name and get this error:  "No Team Foundation Server databases were found on the given SQL Server Instance."

I can manually connect to the database through SSMS.

I can’t find any references to this on the web – everything talks about migrating from one instance to another instance of TFS, where an error regarding detaching a database occurs, but this doesn’t even recognize the database. 

Any ideas what the issue might be?

Export to a file what Visual Studio Modify shows

$
0
0
I need to compare what I have installed for Microsoft Visual studio community edition with another developer who suspects the problems I have are due to not having installed the proper components. Ho send me a visual snapshot he made but that is not the best solution as it's not complete and is easy to miss items. Is there a way to export that to a file and compare that way?

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.

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...

Which Windows (P)SDKs are visual studio backwards compatible (Visual Studio 97)

$
0
0

Dear community of the Visual Studio forums,

My name is Kevin Crans, and I'd like to recompile an old source code of a development program.

This program requires tools inside Visual Studio 97.

I was a little confused if all the Windows 98 SE/ME SDKs delivered after Visual Studio 6.0 are compatible with Visual studio 97.

I do have a windows 98 DDK, but out of experience I know the proper SDK should binstalled first.

I also would like to know which MSDN SDK/DDK release is the latest release to be compatible with both Visual Studio 97 and Windows 9x / ME.

I hope my question can be answered and thank you in advance!

Sincerely,

Kevin Crans


VS cross-compilation to Linux

$
0
0

Hello,

I have a project in Eclipse, that I'd like to migrate to Visual studio.

This is a project for cross compiling linux binary in windows environment (32 bit shared object for x86-64 architecture)

I have set up a work environment (remote machine with Ubuntu 16.04 LTS 32bit, SSH connection) and I'm able to compile my project from visual studio, but I'm not getting same result as in eclipse. 

When compile this project in eclipse I see following command line:

x86_64-pc-elf-g++ "-I[include path 1]" "-I[include path 2]"  -O0 -g3 -Wall -c -fmessage-length=0 -mx32 --no-use-cxa-atexit -fPIC -o [output]

I tried setting these options in Visual studio in:

Project properties>>C/C++>>All option>>Additional option

but almost none of them are recognised. -O0 -Wall -fpic(if it is same as -fIPC) are ok, rest are not.

Is it possible to achieve what i'm trying?  

Vs2017 (15.9.11) changes encoding from ANSI to UTF8 after save

$
0
0

Vs2017 (15.9.11) changes encoding from ANSI to UTF8 after save.

This is not happening for all .cs files but few files.

Note - I tried same in Vs2015 and encoding is not changing there.

Can you please suggest if any fix available ?

Where to ask VS2019 questions?

$
0
0

Hi

I'm confused by the two forum sites Microsoft is having for Visual Studio, and wonder where I should post VS2019-related questions? 

We have this MSDN Forum

Microsoft also provides a Visual Studio Developer Community, which is an extremely active forum and it looks many times more modern and functional than this MSDN forum. 

What's the difference between these two forums?  



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)

Upgrade an ancient VS extension to 2019

$
0
0

I've once written an extension for Visual Studio. Well, copied and hacked it together. I never quite understood how that works. But it's very useful and I don't want to miss it. I also want to see it in the VS gallery again so it needs to be upgraded to the latest standards. The extension officially supports VS 2010 to 2015, since then everything has changed. The manifest file format is completely new, and it seems like none of the packages, references and classes are known anymore.

The extension does work fine in VS 2017, and I'm sure it would still work in VS 2019 if I just incremented the version number. But the VS gallery won't even let me upload it. So installing it in VS 2017 is already a manual process with a warning showing up.

Here's the page with a link to the source code: https://marketplace.visualstudio.com/items?itemName=ygoe.TODOHighlighter

Can somebody please give me guidance what I need to do to rewrite this with today's tools? I've opened VS 2019 and created a new VS extension project. It looks completely different to my old project. Nothing to compare. And copying in the old files (just two short source files) gives me errors of missing types. So that's doesn't lead me anywhere. I also don't know what to use the new generated file for, TodoHighlighterPackage.cs. It contains long comments I don't understand.

Viewing all 21115 articles
Browse latest View live


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