Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 24 11:55
    drewnoakes commented #339
  • Feb 24 11:55

    drewnoakes on master

    Update provide_custom_icons_for… Update provide_custom_icons_for… Fix indentation in provide_cust… and 1 more (compare)

  • Feb 24 11:55
    drewnoakes closed #339
  • Feb 24 11:37
    microsoft-cla[bot] commented #339
  • Feb 24 11:09
    drewnoakes commented #339
  • Feb 24 11:06
    microsoft-cla[bot] commented #339
  • Feb 24 11:06
    drewnoakes synchronize #339
  • Feb 24 08:19
    workgroupengineering edited #339
  • Feb 24 08:19
    workgroupengineering edited #339
  • Feb 24 08:15
    workgroupengineering synchronize #339
  • Feb 23 11:26
    workgroupengineering opened #339
  • Feb 08 22:14

    adrianvmsft on master

    Data flow best coding practices… (compare)

  • Feb 08 22:14
    adrianvmsft closed #338
  • Feb 08 22:00
    adrianvmsft synchronize #338
  • Feb 08 21:51
    adrianvmsft synchronize #338
  • Feb 08 21:51
    adrianvmsft synchronize #338
  • Feb 06 01:09
    adrianvmsft synchronize #338
  • Feb 02 01:05
    adrianvmsft synchronize #338
  • Feb 02 01:01
    adrianvmsft synchronize #338
  • Feb 02 01:00
    adrianvmsft synchronize #338
Kirk Fertitta
@kfertitta
@jp2masa , For custom project systems, I know it's highly recommended to import Microsoft.Common.targets, which I do.
But, I'm wondering if it's needed to import the corresponding props - Microsoft.Common.props.
Kirk Fertitta
@kfertitta
Never mind. Dumb question.
Kirk Fertitta
@kfertitta
@jp2masa Our project system needs to support several dependency types -- assembly refs, project refs, package refs, COM refs. I've put everything in place, I believe, to make this work, and I can, indeed, add all of these reference types (except NuGet, as noted above). But, some of them always show up as unresolved. Specifically, NuGet refs and project references to VC++ projects always show up as "broken". COM refs, assembly refs, and refs to my own custom project system projects all show up as resolved, as expected.
I have a minimal repro showing this behavior. Any thoughts?
Kirk Fertitta
@kfertitta
Is there any CPS representation for an unloaded UnconfiguredProject, or do we have to fall back on IVsHierarchy?
We have some use cases where we want to detect the existence of an unloaded project in the solution and ask some very basic questions, such as the file path.
I believe UnconfiguredProject is tied to IVsProject, which I know is not available from an unloaded IVsHierarchy.
Dan Neve
@DanForever
Is there a 2015 -> 2017 migration guide anywhere?
I've seen this list of differences (https://github.com/Microsoft/VSProjectSystem/blob/master/doc/overview/breaking_changes_visual_studio_next.md) but I'm wondering if there's any info anywhere on how to support builds for both 2015 and 2017
or will my easiest path be to remake the project from scratch and copy over any of the relevant files (such as launch/deploy providers)?
Robert van der Hulst
@RobertvanderHulst
@kfertitta We are using a modifies version of MPF. No problems with broken references. You can find our source here: https://github.com/X-Sharp/XSharpPublic/tree/master/VisualStudio if you want to have a look
Kirk Fertitta
@kfertitta
@RobertvanderHulst Thanks for the feedback. We've been working with MPFProj for many, many years, having forked off many branches -- most recently the pytools branch.
I've lived there for a long time and, having a couple months of CPS migration behind me, I'm very glad to be rid of it.
IMHO, CPS is superior in nearly every way.
But, it has holes in it as well, most notably on NuGet integration.
To be fair, this is both a NuGet client issue as well as a CPS issue, and, to be even more fair, probably more the former based on some recent work we've been doing with the VS folks.
Nevertheless, I can identify with the sentiment that motivates people to stick with the control available via MPFProj.
Robert van der Hulst
@RobertvanderHulst
@kfertitta We’d love to go to CPS. Our initial attempt failed because we could not figure out how to get it to open source files with windows forms in the Windows Forms editor. The concept of a designer subtype was not supported. I am not sure how that is at this moment. But the fact that the C# project system has not moved to CPS completely probably indicates that this is still not a trivial task. When C# moves over to CPS completely, then we will have a look and borrow their solution.
Kirk Fertitta
@kfertitta
@RobertvanderHulst Yeah, I know the feeling.
We held off for a long time because of absent things we needed.
Initially, it didn't support the project designer, which was fundamental to us, as is your designer subtype issue.
With the project designer having been in place for quite a while now, we decided it was time to give it a try.
Robert van der Hulst
@RobertvanderHulst
@kfertitta Yes the app designer was another thing. Now that there is an example in the C#/VB project system that is no longer a real issue.
Viktor Veis
@viktorveis
To grow our CPS community and to reduce response time, we're merging this channel with the Visual Studio Extensibility channel. Please continue CPS discussion at https://gitter.im/Microsoft/extendvs.
Kirk Fertitta
@kfertitta
@viktorveis Thanks for clarifying and consolidating for us. Looking forward to more CPS discussions over there.
Jose
@pepone

I'm updating my extension to VS 2019 preview, I seeing this exception

System.MissingMethodException: Method not found: 'Microsoft.VisualStudio.ProjectSystem.IProjectServices Microsoft.VisualStudio.ProjectSystem.IProjectService.get_Services()'.
   at IceBuilder.ProjectHelper.<WithProjectAsync>d__2`1.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
   at IceBuilder.ProjectHelper.WithProjectAsync[T](UnconfiguredProject unconfiguredProject, Func`2 func)

I'm building my extension with Microsoft.VisualStudio.ProjectSystem 15.8.243

Matthijs ter Woord
@mterwoord
see CosmosOS/Cosmos@5cf4dbd for main changes we did for vs2019
Jose
@pepone
@mterwoord is the imperative way to initialize the services no longer supported?
so I should use the import?
Matthijs ter Woord
@mterwoord
not sure, sadly i havernt had time for open source.. :(
you're welcome in our gtter channel to ask around on this though..
Jose
@pepone
I will ask on extendvs channel
Adrian Vinca
@adrianvmsft
We made some breaking changes in CPS in VS 2019 - There is PR in progress to update the documentation: #308
Daniel Meza
@danielmeza
Hi guys! I´m development a VS Extension and need to load projects based on its nugets references, I know hot to make it with the old VSProjects but not with the new projects (.NET Core, .NET Estándar) project types, any one can guide me to the correct way?
Max Young
@maxinfet
@danielmeza I am also interested in how to do this
I gave up on this after not being able to find information on it
Hemant
@hemantnavarkar
I am using IVsEditorFactory to create new factory for on my extension which which uses customized view. I don't want my view to be dockable. Is there any way to do this ?
dhilburn
@dhilburn
Hello. I apologise in advance for my inexperience. I'm attempting to add a c++ project designer page from a VSPackage. I've created a
dhilburn
@dhilburn
I'm attempting to add a custom Microsoft.Build.Framework.XamlTypes.Rule instance vids the
... via the IAdditionalRuleDefinitionService. In my VSPackage class, I've defined a property of that service type with the [Import] attribute, but it is always null in my package's InitializeAsync method. What do I need to do to get access to this service?
Also, sorry about the multiple posts. Apparently, switching from chrome to a different app on my phone causes any existing text too be submitted. =/
jgefen
@jgefen
Hi, I am new to working with the VSProjectSystem. I have a project that uses MsBuild SDK, is there any way to get the SDK name(or better path) of the project being loaded?
kandvict
@kandvict
Hi there, for a VSPS project I'm working on, after adding a new project I add for it a reference to an existing project,
but the OnItemAdded (from IVsHierarchyEvents) is not triggered, it is however triggered when I delete the reference and then add it back again.
is it a feature? is there a known workaround for it?
lordmilko
@lordmilko
on september 23rd 2017, @jviau identified (https://gitter.im/Microsoft/VSProjectSystem?at=59c546a6c101bc4e3af94e92) a bug in CPS wherein Assembly.Load would fail to locate assemblies containing ExportPropertyXamlRuleDefinition attributes for embedding the xaml info directly in your project dll, even if they were already loaded into the app domain, and opened an internal CPS bug to get this fixed. i have now run into this issue in Visual Studio 2019 and have traced it back to Microsoft.VisualStudio.ProjectSystem.PropertyPages!Microsoft.VisualStudio.ProjectSystem.PropertyPages.ExtensionRuleDefinitionsRetrievalService.GetRules, which I assume to be the same location referred to in his original post. is anyone potentially able to advise what the status of this fix is?
Julio César Rocha
@JunielKatarn

Hi. Is there a way to retrieve an individual value from an item definition metadata?
(i.e. ClCompile.PreprocessorDefinitions)
I have this in an MSBuild task:

<Message Text="=> PreprocessorDefinitions     [@(CLCompile->Metadata('PreprocessorDefinitions')->Distinct())]" />

It yields a semicolon-separated list of values (a;b;c;d=1;e=2)
How can I obtain a plain a or d=1?

msedi
@msedi
Recently all my WPF projects add an many additional wpftmp folders. Searching through the web didn't show anything. I don't know exactly if it comes from an update of VS or from some changes in the csproj files.
Justinas Bikulcius
@eustaceb
Hello. I would like to add a custom property (or a whole page) to a Microsoft Visual C++ project (vcxproj) that would show up in the Project Designer's property pages. Is there a way to do that without extending / reimplementing the project system?
Ghost
@ghost~5f3f8ce4d73408ce4fecce7d
The VSProjectSystem repo doesn't have good "getting started" documentation. I'm working with VS2019 and would like to create a custom project type. What resource should I use to understand how to achieve this?
Robert van der Hulst
@RobertvanderHulst
I am trying to add support for a "new" projectsystem based on CPS for our existing project system based on MPF. Just like the new FSharp project system I have added an implementation of IVsProjectSelector and added a pkgdef file that registers the project selector. When I use the Settings Store Explorer (nice tool !) I can see that the pkgdef file is imported in the settings. The project selector is registered in [$RootKey$\Projects] for both 2 projecttype guids as "ProjectSelector" and in [$RootKey$\ProjectSelectors] with the property package ID. I can also see that the package is registered in the Packages node and that its codebase is located in the Extensions subfolder inside LocalAppdata.
However the project selector never gets called.
Does anybody know how I can detect why this never gets called?
Instead VS (2019 and 2019 preview, both the latest versions) always calls the package constructor of the "old" MPF based project system.
Ghost
@ghost~5f3f8ce4d73408ce4fecce7d

The VSProjectSystem repo doesn't have good "getting started" documentation. I'm working with VS2019 and would like to create a custom project type. What resource should I use to understand how to achieve this?

any help would be greatly appreciated?

Robert van der Hulst
@RobertvanderHulst
@imbatman_xyz_twitter https://github.com/microsoft/VSProjectSystem contains the documentation and 2 examples.
Ghost
@ghost~5f3f8ce4d73408ce4fecce7d
@RobertvanderHulst thank you! it isn't the best documentation but I guess it's the only resource? The docs mention 2017 and 2015vs - will I have the best experience developing a custom project system whilst using those versions?
Robert van der Hulst
@RobertvanderHulst
@imbatman_xyz_twitter It works with VS2019 as well. In fact you can also look at https://github.com/dotnet/project-system which contains the source to the C# and VB project systems for VS2019. These are based on CPS. Unfortunately that is quite a large volume of code, so it may not always be easy to understand what they are doing. There is also some documentation in this repository that may help you to get started.
The idea behind CPS was to make it easier for us. I am not sure if they have succeeded in that....
Ghost
@ghost~5f3f8ce4d73408ce4fecce7d
@RobertvanderHulst thanks a lot for the guidance
Hemant
@hemantnavarkar

I have Visual Studio Isolated Shell applicaton, I have hosted one Windows Form View on Factory.
The Windows form having Grid control and Property Grid.

Problem is when user clicks on the Property Grid and do Shift+Alt+Enter then window maximize but the same not working on
GridView ?

I tried to handle the KeyDown event as below
private void dataGridView1D_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter && e.Modifiers == (Keys.Shift | Keys.Alt))
{
e.Handled = true;
return;
}

        base.OnKeyDown(e);
    }

the condition never calls.

Please suggest any solution
msedi
@msedi
I have created a VS extension that creates C# wrappers around CUDA (cu) code. Inside VS I have a cu-file in my project. The extension reacts on saving the file and creates 3 files. The problem is that I cannot version extensions and going and back and forth in version history has the problem that the team is not able to see this. Furthermore the team needs to know it has to install the extension. Is there any better solution? Sdks only hook in into the build process and source generators might not be sufficient.