Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 30 11:32
    KristianJakubik edited #328
  • Aug 30 11:21
    KristianJakubik edited #328
  • Aug 30 11:20
    KristianJakubik reopened #328
  • Aug 30 11:20
    KristianJakubik edited #328
  • Aug 30 11:20
    KristianJakubik edited #328
  • Aug 30 11:10
    KristianJakubik closed #328
  • Aug 30 11:10
    KristianJakubik opened #328
  • Aug 26 22:59
    tgeng commented #234
  • Aug 26 22:01
    tgeng commented #234
  • Aug 26 21:16
    tgeng commented #234
  • Aug 05 06:48
    aodl commented #130
  • Aug 05 06:21
    aodl commented #130
  • Aug 05 06:21
    aodl commented #130
  • Aug 02 21:53
    tgeng commented #167
  • Jul 26 12:43
    drewnoakes opened #327
  • Jul 19 16:04
    aodl commented #46
  • Jun 28 04:08
    dhilburn opened #326
  • May 28 20:04
    aodl edited #325
  • May 28 20:03
    aodl opened #325
  • Apr 18 03:11

    viktorveis on master

    Added comparison between MPFPro… Replaced CPS with VSPS since CP… Replace deprecated Connect with… and 9 more (compare)

Kirk Fertitta
@kfertitta

@jp2masa , If you're interested, I see the same behavior with the default Project Type template. I attached a minimal project system. All I did was:

  • Use the Project Type template.
  • Add XAML rules for ProjectReference, ResolvedProjectReference, PackageReference, ResolvedPackageReference.
  • Add the project capabilities referenced in your link above.
  • Imported Microsoft.Common.targets.
  • Added RestoreProjectStyle property.

Try adding any NuGet package to it via the package manager. It succeeds, but adds a packages.config and doesn't add the required imports to the project file.

Julio César Rocha
@JunielKatarn
@kfertitta Thanks!
I’ll give it a try.
Kirk Fertitta
@kfertitta
@JunielKatarn Note that you can also skip the first step if you already have a EnvDTE.Project instance. Just depends on if you're starting from a DTE object or IVsHierarchy.
Kirk Fertitta
@kfertitta
@jp2masa Are you saying that you've successfully built a custom project system in which PackageReference works?
Still doesn't for me.
jp2masa
@jp2masa
I didn't, but I think it's possible
jp2masa
@jp2masa
are either TargetFramework or TargetFrameworks set?
Kirk Fertitta
@kfertitta
Oh, lemme try that.
Kirk Fertitta
@kfertitta
The operation failed as details for project <myProjectName> could not be loaded.
Kirk Fertitta
@kfertitta
There's a thread on that error seemingly related to non-letter characters in your project path.
Don't think that's the issue, though.
Note that if I just put the PackageReference in my project template, then it will restore and build fine.
That TargetFramework thing looked promising, but this is, of course, not a .NET Framework project - it's my own, so not sure what value to put there anyway.
That particular code you referenced doesn't seem to be using it -- only insisting it's set to something.
But, hard to tell what they're doing in the ctor of that class they're returning.
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. =/