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)
Hey, I have a custom project page registered with
[Export(typeof(IVsProjectDesignerPageProvider))]
[AppliesTo("SliceCompile")]
internal class ProjectDesignerPageProvider : IVsProjectDesignerPageProvider
{
public Task<IReadOnlyCollection<IPageMetadata>> GetPagesAsync() =>
Task.FromResult((IReadOnlyCollection<IPageMetadata>)ImmutableArray.Create(new SliceCompilePageMetadata()));
}
But GetPageAsync is not called by Visual Studio 2022, did anything changes on how these property pages work? so far the same works fine with 2017 and 2019, and I cannot figure why this doesn't work with vs 2022
Hey 👋
I'm testing my extension on VS2015, VS2017 and VS2019. On 2019 version all works fine, but for 2015 and 2017 it throw an error
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Не удается найти указанный файл.
File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Span
1..ctor(T[] array)
at System.Text.Json.JsonSerializer.DeserializeTValue
at System.Text.Json.JsonSerializer.DeserializeTValue
at Common.Json.DeserializeT
at Extension.Service.ApiService.<GetSastSettingsAsync>d5.MoveNext() in C:\Projects\VisualStudio.Extension\ApiService.cs:line 50
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Extension.Service.ApiService.<IsCodeEnabledAsync>d6.MoveNext() in C:\Projects\VisualStudio\Extension\Service\ApiService.cs:line 69`
I tried to add this in my app.config file
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1"/>
But it doesnt help.
Maybe some one can suggest solution/fix?
Thanks!
Is anybody else having trouble with the VsixPublisher.exe tool shipped with VS2022? I am using the windows-2022
image in my Github Actions to publish my extension, but the tool ALWAYS throws an exception from the command line, even though it returns a success message. This happens NO MATTER how to invoke the tool from the command line. For reference, the VS2022 version of this tool is found here: C:\Program Files\Microsoft Visual Studio\2022\Professional\VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe
.
Unhandled Exception: System.MissingMethodException: Method not found: 'Void Microsoft.VisualStudio.RemoteControl.RemoteControlClient..ctor(Microsoft.VisualStudio.Utilities.Internal.IRegistryTools, System.String, System.String, System.String, Int32, Int32, Int32)'.
at Microsoft.VisualStudio.Telemetry.TelemetryManifestManager.Start(String hostName, Boolean isDisposing)
at Microsoft.VisualStudio.Telemetry.TelemetrySession.Start(Boolean checkPendingAsimovEvents)
at Microsoft.VisualStudio.Sdk.VsixPublisher.TelemetryLogger.CreateTelemetrySession()
at Microsoft.VisualStudio.Sdk.VsixPublisher.TelemetryLogger.get_TelemetrySession()
at Microsoft.VisualStudio.Sdk.VsixPublisher.Program.Main(String[] args)
VSSDK: information VsixPub0041 : Publisher 'SajalVerma' is now logged-in.
Error: Process completed with exit code 1.
If you see the logs, the tool does log me in from the command line, but also throws an exception leading to my publish pipeline failing. If I try logging in from the VS2019-shipped version of it, it works fine.
Trying to invoke the help option also throws this exception from command line, leading me to believe this is a bug: C:\Program Files\Microsoft Visual Studio\2022\Professional\VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe --help
I believe so, @leksycode:matrix.org - are you familiar with the IWizard interface? https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-use-wizards-with-project-templates Visual Studio provides the IWizard interface that, when implemented, enables you to run custom code when a user creates a project from a template.
Project template customization can be used to display custom UI that collects user input to customize the template, add additional files to the template, or any other action allowed on a project.
CreateAsync
methond of the tool window class or in the constructor for the ToolWindowPane
class itself? Where's the appropriate place to remove the event listeners?
vsixId
fields in the extension pack to match the <Id>
tags in the atom.xml
file in our private gallery but no extensions are installed by the pack. What could be wrong?
One of my customers reported this VS notification (at the top of document tabs):
"The extension Tabs Studio 5.1.2 will be disabled the next time Visual Studio opens."
There is no explanation from VS. What should we do?