Skip to content

Duplicate ID issue when following documentation page for upgrade path to v4, but works fine with this repo #40

@PockyBum522

Description

@PockyBum522

It's Christmas eve please do not work on this immediately, but I just wanted to mention: I'm working on upgrading to V4 and during my following the guide I found:

I wanted to start with a clean project and slowly move my codebase back in, cause I'm weird. I am following the instructions on this page: https://netdaemon.xyz/docs/v3/app_model/app_model_moving_from_v3

I ran the uninstall commands for the old codegen and also dotnet new uninstall JoySoftware.NetDaemon.Templates.Project

I also confirmed the old template was uninstalled properly by running "dotnet new uninstall" which just lists what's installed, and nothing was there for ND stuff.

I get:

PS D:\source\repos\PockyBum522 Github\netdaemon-home-assistant-apps\src> dotnet new install NetDaemon.Templates.Project
The following template packages will be installed:
   NetDaemon.Templates.Project

Warning:
The following templates use the same identity 'NetDaemon.Template.Project.Default':
   'NetDaemon: Default project template' from 'NetDaemon.Templates.Project::23.47.0'
   'NetDaemon: Default project template' from 'NetDaemon.Templates.Project::23.47.0'
The template from 'NetDaemon: Default project template' will be used. To resolve this conflict, uninstall the conflicting template packages.
Warning:
The following templates use the same identity 'NetDaemon.Template.Project.SourceDeploy':
   'NetDaemon: Source deployment project template' from 'NetDaemon.Templates.Project::23.47.0'
   'NetDaemon: Source deployment project template' from 'NetDaemon.Templates.Project::23.47.0'
The template from 'NetDaemon: Source deployment project template' will be used. To resolve this conflict, uninstall the conflicting template packages.
Success: NetDaemon.Templates.Project::23.47.0 installed the following templates:
Template Name                                  Short Name      Language  Tags
---------------------------------------------  --------------  --------  -----------------
NetDaemon: Default project template            nd-project      [C#]      NetDaemon/Project
NetDaemon: Source deployment project template  nd-src-project  [C#]      NetDaemon/Project

PS D:\source\repos\PockyBum522 Github\netdaemon-home-assistant-apps\src>

HOWEVER if I clone this repo, then install the template, everything works fine. So I'm guessing it's just an issue with whatever is uploaded to wherever "dotnet new --install NetDaemon.Templates.Project" pulls from when it installs.

Metadata

Metadata

Assignees

No one assigned

    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