Skip to content

DDEX VSIX for VS2015RC #598

Closed
Closed

Description

@roji

Hey @kenjiuno, with VS2015RC out maybe you'll have time to set up a VSIX for it?

Activity

  1. kenjiuno commented on May 8, 2015

    @kenjiuno
    Contributor

    Hi.

    I believe it will work on VS2015RC. Which Npgsql version: 2.2 or 3.0?

  2. roji commented on May 8, 2015

    @roji
    MemberAuthor

    I haven't touched the DDEX provider at all for 3.0, so it should be really identical between the two...

  3. kmschaefer commented on May 9, 2015

    @kmschaefer

    I got Visual Studio 2015 RC installed and tried getting version 3.0.0.0 working. When I tried to install the Visual Studio extension, it failed to install. Looking at the install log, it can't find an applicable version of Visual Studio. I don't know how to modify the DDEX provider configuration to force it to install.

    5/8/2015 7:51:01 PM - Searching for applicable products...
    5/8/2015 7:51:01 PM - Found installed product - Microsoft Visual Studio Professional 2015 RC
    5/8/2015 7:51:01 PM - Found installed product - Microsoft Visual Studio Community 2015 RC
    5/8/2015 7:51:01 PM - Found installed product - Microsoft Visual Studio 2015 RC Shell (Integrated)
    5/8/2015 7:51:01 PM - Found installed product - Global Location
    5/8/2015 7:51:01 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.

  4. kenjiuno commented on May 9, 2015

    @kenjiuno
    Contributor

    Hi.

    Ok, I will work it on this night... 12 hours later.

    Kenji uno 🔰

    2015/05/09 9:45、kmschaefer [email protected] のメッセージ:

    I got Visual Studio 2015 RC installed and tried getting version 3.0.0.0 working. When I tried to install the Visual Studio extension, it failed to install. Looking at the install log, it can't find an applicable version of Visual Studio. I don't know how to modify the DDEX provider configuration to force it to install.

    5/8/2015 7:51:01 PM - Searching for applicable products...
    5/8/2015 7:51:01 PM - Found installed product - Microsoft Visual Studio Professional 2015 RC
    5/8/2015 7:51:01 PM - Found installed product - Microsoft Visual Studio Community 2015 RC
    5/8/2015 7:51:01 PM - Found installed product - Microsoft Visual Studio 2015 RC Shell (Integrated)
    5/8/2015 7:51:01 PM - Found installed product - Global Location
    5/8/2015 7:51:01 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.

    —
    Reply to this email directly or view it on GitHub.

  5. roji commented on May 9, 2015

    @roji
    MemberAuthor

    Thanks @kenjiuno :)

  6. kenjiuno commented on May 10, 2015

    @kenjiuno
    Contributor

    VS2015RC ddex support will take more times...

    Sometimes ddex support will work, but sometimes it won't.

    It needs some fixes.

    For example, CreateObject will return AdoDotNetConnectionProperties instance for IVsDataConnectionProperties query.

        [Guid(GuidList.guidNpgsqlDdexProviderObjectFactoryString)]
        class NpgsqlProviderObjectFactory : DataProviderObjectFactory
        {
            public override object CreateObject(Type objType)
            {
                if (objType == typeof(IVsDataConnectionProperties) || objType == typeof(IVsDataConnectionUIProperties))
                    return new AdoDotNetConnectionProperties();
                else if (objType == typeof(IVsDataConnectionSupport))
                    return new AdoDotNetConnectionSupport();
                else if (objType == typeof(IVsDataObjectSupport))
                    return new DataObjectSupport(this.GetType().Namespace + ".NpgsqlDataObjectSupport", System.Reflection.Assembly.GetExecutingAssembly());
                else if (objType == typeof(IVsDataViewSupport))
                    return new DataViewSupport(this.GetType().Namespace + ".NpgsqlDataViewSupport", System.Reflection.Assembly.GetExecutingAssembly());
                return null;
            }
        }
    

    But, AdoDotNetConnectionProperties doesn't implement IVsDataConnectionProperties.

    It sometimes causes ServiceNotFoundException and such.

    I'll report progress later.

  7. roji commented on May 11, 2015

    @roji
    MemberAuthor

    Sure @kenjiuno, thanks for all the work :) We probably still have time for the final release of VS2015 anyway.

  8. kenjiuno commented on May 11, 2015

    @kenjiuno
    Contributor

    Hi.

    I have noticed that some properties cannot be set values. This issue is seen on both Vs2013 and Vs2015.

    failedsetval

    The exception is thrown at Npgsql.NpgsqlConnectionStringBuilder.GetProperty(String keyword)

    I don't really understand why setting property Buffer Size instead of BufferSize. hmm...

  9. roji commented on May 11, 2015

    @roji
    MemberAuthor

    I'll try to take a look ASAP @kenjiuno

  10. roji commented on May 12, 2015

    @roji
    MemberAuthor

    @kenjiuno, I don't understand exactly what's happening... The properties in NpgsqlConnectionStringBuilder have names like BufferSize, only the [DisplayName] attribute is "Buffer Size". AFAIK [DisplayName] is only for showing to the user, does VS try to call GetProperty with it somehow?

  11. kenjiuno commented on May 12, 2015

    @kenjiuno
    Contributor

    Thanks for checking it.

    only the [DisplayName] attribute is "Buffer Size"

    Yea, exactly.

    does VS try to call GetProperty with it somehow?

    I'll check the property name where it comes from.

  12. roji commented on May 12, 2015

    @roji
    MemberAuthor

    OK @kenjiuno, let me know if I can help in any way. It's also strange because in 2.2 the connection string builder wasn't very different (properties had [Display] etc...)

  13. kenjiuno commented on May 12, 2015

    @kenjiuno
    Contributor

    Hi.

    It seems to be by design...

    AdoDotNetConnectionProperties.ToDisplayString() calls PropertyDescriptor.DisplayName to build connection string. (checked by ILSpy)

    I have checked SqlConnectionStringBuilder's "Data Source" for example. http://referencesource.microsoft.com/#System.Data/System/Data/SqlClient/SqlConnectionStringBuilder.cs,399

    I don't really understand the detail implementation, but DataSource property looks like just getter/setter for Data Source.

  14. 3 remaining items

  15. added a commit that references this issue on May 14, 2015
  16. roji commented on May 14, 2015

    @roji
    MemberAuthor

    OK @kenjiuno, I did these changes, the [DisplayName] attribute is now a valid keyword name (and even the canonical one)

    Please test and let me know if anything else needs work!

  17. kenjiuno commented on May 20, 2015

    @kenjiuno
    Contributor

    Hi sorry for late reply.
    I'll test this, thanks!

  18. kenjiuno commented on May 23, 2015

    @kenjiuno
    Contributor

    Ok, Npgsql 3.0.0 develop ddex works on VS2013: both EFv5 and EFv6 projects.

  19. roji commented on May 23, 2015

    @roji
    MemberAuthor

    Great work @kenjiuno!

    I plan to release 3.0.0-beta1 at some point this week, it would be great to release the DDEX VSIX after it. I'll drop you a note when I release.

  20. franciscojunior commented on May 23, 2015

    @franciscojunior
    Member

    Excellent work, @kenjiuno!!

  21. JanRou commented on May 25, 2015

    @JanRou

    I have successfully got Entity Framework 6.1.1 up in VS2015 Community RC. The first attempt failed with Entity Framework 6.1.3. I have followed the Visual Studio Design Time Support DDEX Provider procedure.

    I have installed:

    • VS2015 Community RC - no other Visual Studio is installed.
    • VS2015 RC SDK
    • Setup_Npgsql-2.2.5.0-net45-r3
    • PostgresSQL 9.4 64 bit version

    I have created the test console project following the procedure and installed the NuGet packages:

    • Npgsql version 2.2.5.0
    • Npgsql 2.2.5.0 for Entity Framework >6.0.0
    • Entity Framework 6.1.1 (don't use version 6.1.3, because it fails)

    Voila the database model appears.

  22. Emill commented on May 25, 2015

    @Emill
    Contributor

    Maybe silly question, but have you built your project once?

  23. JanRou commented on Jun 27, 2015

    @JanRou

    Yes. I'm looking forward for support of 6.1.3 and especially code first support, which will position Postgres as and complete equivalent and better choice than MS-SQL. You will get database partitioning and ORM for free.

  24. roji commented on Jul 11, 2015

    @roji
    MemberAuthor

    @kenjiuno, I'm not sure anymore but does the DDEX provider support VS2015? Above we discussed Npgsql 3.0 support more than VS2015... I'm asking because the official release is expected to be July 20th.

  25. kenjiuno commented on Jul 12, 2015

    @kenjiuno
    Contributor

    Hi.

    Sorry for long blank.
    I'm working on issue #622 : the possibility of non-GAC VSIX installation. There are at least 2 problems to be researched. It will take more than a week...

    I'm asking because the official release is expected to be July 20th.

    Wow it is almost near future!

    Anyway, the most sure way is to do Npgsql GAC installation for DDEX support, for now.
    However, I think that incoming Npgsql 3.0 and its EF support DLLs are distributed by NuGet or similar online distribution service.
    How about this?

    In this situation, I will be able to prepare following things for now:

  26. roji commented on Jul 12, 2015

    @roji
    MemberAuthor

    Hey @kenjiuno.

    Ah, I didn't know you were working on non-GAC VSIX installation, that's great.

    I think that for now there's now urgent need to change how the DDEX provider works - only to make it compatible with VS2015.

    For 3.0, it would be great if we could have a simple, clean VSIX that doesn't do anything with the GAC. An actual release of 3.0 is probably 2 weeks away (if nothing serious is reported), so you have time to work on that if you want. If you don't have the time to do it for the 3.0 release, we can always release the DDEX provider a bit later, I don't think it's a big deal...

  27. kenjiuno commented on Jul 14, 2015

    @kenjiuno
    Contributor

    @roji thanks, I'll try non-GAC version!

  28. roji commented on May 8, 2016

    @roji
    MemberAuthor

    Closing this as we have DDEX for VS2015 with Npgsql 3.0.x.

    Work on a non-GAC VSIX DDEX extension can be tracked in #622.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions