Thanks for you help Huw Reddick not sure if that was the solution because I also started ticking the version number over and things started happening.
Got it copying the files from the package however I get this arrow on the folder / files in the solution explorer and I cannot edit them. And they dont copy to the bin/debug folder etc.
second issue it appears that some files re not being recognized even if I copy them over to the bin folder manually. As the dll is now working but the the lang en-US.xml file is not recognized to set the Section name correctly.
tried changing lang to lowercase didnt help. Wouldnt expect it to as I said all works if I compile files direct inside a web project.
another observation is it normal for the nuget packege output in the web project to have a content Files node. all other packages dont. also it appears the package manifest is not being recognized. As the html views for the aplp_plugins are not recognizing the js controllers. However the html view is loaded.
After much trial and error and study of Huw documentation.
All ways not copying over as when the package compiles all the AppPlugins went to the "contents/AppPlugins/IBDStarterKit folder".
worked this out by tracking down where all the packages are download to on the computer. "C:\Users[User Name].nuget\packages[package name][version]\contents\App_Plugins\IBDStarterKit"
This now allowed the files to copy from the root AppPlugins folder to the bin/debug/net7.0/AppPlugins on running the application. And then be recognized in the back office.
However more to learn.
The IIRC the arrow indicates was still on the files. and the contents were still listed inside the dependencies/nuget package in the solution explorer.
After studying Huw documentation I noticed I had this line missing
<ContentTargetFolders>.</ContentTargetFolders>
this solved all this inconsistences but ment the files went being loaded again. This line removed the contents folder form the nuget package in the solution explorer and also the content folder in the users package location.
Trying to create a package
trying to create my first simple package some js/css/html form app_plugins folder and a dll
the dll complies and copies to the bin folder when installing the package.
files for the dll copied from original project so the code is tested in the project.
However the dll doesn't appear to run. it should add a ISection and IDashboard
project file
the .targets file is self generated by vs2022 umbracko package
Any help would be appreciated.
Hi Daniel,
In the prj file try changing this
To the following (taken from my package project)
Thanks for you help Huw Reddick not sure if that was the solution because I also started ticking the version number over and things started happening.
Got it copying the files from the package however I get this arrow on the folder / files in the solution explorer and I cannot edit them. And they dont copy to the bin/debug folder etc.
second issue it appears that some files re not being recognized even if I copy them over to the bin folder manually. As the dll is now working but the the lang en-US.xml file is not recognized to set the Section name correctly.
IIRC the arrow indicates they are linked files rather than existing physically in the project, not sure why/how that has occured
You should not have to copy anything to the bin folder.
Could you maybe provide an image of your full project structure?
Just a thought but the Lang folder may be case sensitve so try changing it to lang instead.
tried changing lang to lowercase didnt help. Wouldnt expect it to as I said all works if I compile files direct inside a web project.
another observation is it normal for the nuget packege output in the web project to have a content Files node. all other packages dont. also it appears the package manifest is not being recognized. As the html views for the aplp_plugins are not recognizing the js controllers. However the html view is loaded.
No, that is not normal.
I don't know if this will help at all, but I posted a blog on how I converted my Umbraco Forums package to use the new nuget way of doing it.
https://umbraco.themediawizards.co.uk/the-grimoire/umbraco-10-razor-class-library-packages/
Hi Huw
Seen as you were so helpful with this question you may be able to way in on taking this further in this question.
https://our.umbraco.com/forum/using-umbraco-and-getting-started//110941-creating-packages-and-including-all-parts-of-project
Thanks
Thanks Huw Reddick
After much trial and error and study of Huw documentation.
All ways not copying over as when the package compiles all the AppPlugins went to the "contents/AppPlugins/IBDStarterKit folder".
worked this out by tracking down where all the packages are download to on the computer. "C:\Users[User Name].nuget\packages[package name][version]\contents\App_Plugins\IBDStarterKit"
in the targets folder I changed this
to
This now allowed the files to copy from the root AppPlugins folder to the bin/debug/net7.0/AppPlugins on running the application. And then be recognized in the back office.
However more to learn.
The IIRC the arrow indicates was still on the files. and the contents were still listed inside the dependencies/nuget package in the solution explorer.
After studying Huw documentation I noticed I had this line missing
this solved all this inconsistences but ment the files went being loaded again. This line removed the contents folder form the nuget package in the solution explorer and also the content folder in the users package location.
"C:\Users[User Name].nuget\packages[package name][version]\App_Plugins"
returning the targets file back now allowed the files to appear in the project as they should with no IIRC the arrow indicates.
is working on a reply...