Comments (13)
Have merged the PR, and will release a new version in a few days.
Excellent work & MANY THANKS!
from modelsbuilder.original.
@zpqrtbnk No problem at all. Thanks for creating an awesome package :)
from modelsbuilder.original.
Hi. It seems like I still have this problem.
I have installed the following
- Umbraco ModelsBuilder Custom Tool v.2.1.3.43 in VS.
- Zbu.ModelsBuilder.AspNet v.2.1.3-beta001
- Zbu.ModelsBuilder v.2.1.3-beta001
If the assembly where i'm using the Builder.cs is inside a solution folder, the builder does not work (
ZbuModelsBuilder failed to generate code: Exception: Panic: source file not found in any project.).
If I move the assembly outside the solution folder every thing works fine.
from modelsbuilder.original.
Hey @Mesomorf. The extension requires a project file in order to build your models correctly. Is there a reason why your Builder.cs class lives in a Solution Folder? How would you have previously used your generated models if they did not reside within a compilable project? Thanks, Dan.
from modelsbuilder.original.
Hi danlister
Maybe I haven't clean how my solution structure is.
- Solution
- Solution folder
- Project (with umbraco core + modelsbuilder core + builder.cs + other umbraco extensions)
- Project (with umbraco + modelsbuilder aspnet)
- Solution folder
in this solution structure does the builder not work
- Solution
- Project (with umbraco core + modelsbuilder core + builder.cs + other umbraco extensions)
- Project (with umbraco + modelsbuilder aspnet)
but in this structure it works.
from modelsbuilder.original.
Are we talking about Windows filesystem folder, ie real folders that you can see in the file explorer, or Visual Studio folders, ie the structure you see in the solution explorer? Also - any chance you can share with me (email) a ZIP of the entire structure that is not working?
from modelsbuilder.original.
I Hope this work. You should be able to download a zip file here.
https://drive.google.com/folderview?id=0B1CBt4c9wS3zOHNkNjdIQXdnRUU&usp=sharing
Fra: Stephan [mailto:[email protected]]
Sendt: 13. juni 2015 18:55
Til: zpqrtbnk/Zbu.ModelsBuilder
Cc: Mesomorf
Emne: Re: [Zbu.ModelsBuilder] Error generating models when a solution file contains solution folders (#49)
Are we talking about Windows filesystem folder, ie real folders that you can see in the file explorer, or Visual Studio folders, ie the structure you see in the solution explorer? Also - any chance you can share with me (email) a ZIP of the entire structure that is not working?
—
Reply to this email directly or view it on GitHub #49 (comment) . https://github.com/notifications/beacon/AA2gNe5V8uExeW_SIW-QusnZicQEjrqNks5oTFfpgaJpZM4EacqG.gif
from modelsbuilder.original.
OK, I have downloaded the solution. Now I see: you have some projects within a Visual Studio "Solution Folder". Unfortunately, that is not supported at the moment.
Some background: when the custom tool runs, it needs to go through the entire solution to locate the Visual Studio "internal" object corresponding to the file that supports the custom tool (eg builder.cs or generator.cs). Originally, we would look at any root project in the solution, but that would fail with some types of projects such as web apps, and... solution folders. So for the time being, these two types of projects are skipped/ignored.
In order to deal with your solution, the processing code needs to be refactored. I have created this issue to take care of it when possible. And of course... the code is open, so if anyone feels like having a look at it... that'd be great!
from modelsbuilder.original.
Thanks for the help.
from modelsbuilder.original.
beta008 is now out and should fix most of these issues including projects in solution folders. would be great if you all could test. thanks!
from modelsbuilder.original.
Sure I’ll test it. Is there a version on nuGet or do I get the source code?
Fra: Stephan [mailto:[email protected]]
Sendt: 18. juni 2015 14:16
Til: zpqrtbnk/Zbu.ModelsBuilder
Cc: Mesomorf
Emne: Re: [Zbu.ModelsBuilder] Error generating models when a solution file contains solution folders (#49)
beta008 is now out and should fix most of these issues including projects in solution folders. would be great if you all could test. thanks!
—
Reply to this email directly or view it on GitHub #49 (comment) . https://github.com/notifications/beacon/AA2gNdzgJKwDHhocwz_u6kV0DMrdcFxvks5oUq3ngaJpZM4EacqG.gif
from modelsbuilder.original.
beta008 does not change the site-hosted part, only the VSIX extension, which you can download on the release page.
from modelsbuilder.original.
I’t seem like it have solved my problem. I have been moving my project around in the solution structure and the models are generated.
Fra: Stephan [mailto:[email protected]]
Sendt: 19. juni 2015 08:12
Til: zpqrtbnk/Zbu.ModelsBuilder
Cc: Mesomorf
Emne: Re: [Zbu.ModelsBuilder] Error generating models when a solution file contains solution folders (#49)
beta008 does not change the site-hosted part, only the VSIX extension, which you can download on the release page https://github.com/zpqrtbnk/Zbu.ModelsBuilder/releases/tag/2.1.3-beta008 .
—
Reply to this email directly or view it on GitHub #49 (comment) .Billede fjernet af afsender.
from modelsbuilder.original.
Related Issues (20)
- Generating models using the VS extension can cause namespace issues HOT 3
- Cleaner csproj include generated files HOT 1
- Can't Rebuild Models After Deleting Document Type HOT 6
- Interface definition only generated when document type is in use HOT 1
- Request error: The URL returned a 404 (not found): /App_Plugins/ModelsBuilder/modelsbuilder.html HOT 1
- Provide option for generated code to use Language Fallback HOT 7
- ModelsBuilder API Generates first IPublishedElement then never finishes HOT 10
- VS Extension: Method not found: 'System.String Umbraco.ModelsBuilder.Building.Compiler.CreateValidIdentifier(System.String)' HOT 2
- v4: Repository shouldnt link to local nuget server
- v4: If Document type with Template is created Umbraco fails with save of Document Type
- Implemented property keeps being generated HOT 6
- ModelsBuilder on Umbraco v8.8 HOT 10
- v4: Generator should be swappable / extendable
- Generated Models missing PublishedElementModel on generated model.
- Stack Overflow when implementing same interface in generated and partial class
- VS Extension install issue
- Execute ModelsBuilder Programmatically
- When generating models for IPublishedElement it adds a controller no matter what
- UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: NullReferenceException HOT 1
- VS2022 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modelsbuilder.original.