tinaschrepfer on tinali
Remove use of "any" content typ… (compare)
tinaschrepfer on tinali
Merge pull request #169 from Mi… Add sample support for "any" co… (compare)
tinaschrepfer on master
Update VSSDK package and remove… Merge pull request #169 from Mi… (compare)
Hi everyone - question about VSIX:
We're providing packages for Visual Studio 2017 and 2019 and upon installing it takes a long time to run, moreover, it installs other components than listed in our vsixmanifest (e.g. Microsoft.Net.Core.SDK.2.1 which frequently fails to install).
@yannduran this is our dependencies section of .vsixmanifest:
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="4.6" />
<Dependency IsRequired="false" Version="[15.0,16.0)" d:Source="Installed" Id="TestWindow.Microsoft.0771d463-d74d-4e95-aac2-39d3c7ec1f97" DisplayName="Test Explorer"/>
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.Web" Version="[15.0,16.0)" DisplayName="ASP.NET and web development tools" />
</Prerequisites>
Not sure which one might cause VS to always attempt to install .NET Core SDK 2.1. It only happens on VS 2017 tho.
System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Setup.PackageFailureException: Package 'Microsoft.Net.Core.SDK.2.1' failed to install
even if the vsixmanifest has no dependencies or prerequisites :) happens on some installations on VS 2017
@yannduran interestingly, vsix installer fails with
System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Setup.PackageFailureException: Package 'Microsoft.Net.Core.SDK.2.1' failed to install
even if the vsixmanifest has no dependencies or prerequisites :) happens on some installations on VS 2017
Similar error is reported to Visual Studio Community. So make sure you have the latest version of Visual Studio 2017. Also you can try repairing or completely reinstalling the instance.
I'm working on an extension that has a ToolWindow and a Team Explorer integration. If Visual Studio starts up with the Team Explorer panel visible and this extension's ToolWindow not visible, the Team Explorer portion of the extension initializes, but the main extension Package is not initialized until the ToolWindow is shown.
Is there a way to force activate the Package if needed when the Team Explorer code is activated?
@zombiepaladin Maybe this will return what you need? Environment.UserDomainName
@InTheCloudDan , that gets the signed-in Windows user, which might be the same user as the university user. But if they had their own laptop with a different user before they installed Visual Studio, it would not be the Microsoft account they signed into Visual Studio with...
Clean Solution
operation with deleting bin & obj folders.InitializeAsync
where I subscribe to BuildEvents.OnBuildDone
.@aguinet I have to deal with this situation, in terms of keeping compatibility, it's very hard to maintain honestly. The best advice I can offer you is if you can build in VS2017 then it will build on VS2019 and be able to run on VS2017. The most common issue if developing new features and finding out this API does not exist in VS2017.
Thanks for your answer! We ended up by installing both VS2017/2019 build tools + extension SDK in our builder..
UserControl
in a IPropertyPage
. I use it for my Project Properties dialog. If my UserControl
is based on Winforms
it works fine, however it has DPI issues. A WPF
based UserControl
does not display itself. I have tried using UIElementDialogPage
, that also does not help. Any suggestions how should I solve this issue?