Coder Social home page Coder Social logo

Comments (13)

zpqrtbnk avatar zpqrtbnk commented on July 18, 2024

Have merged the PR, and will release a new version in a few days.
Excellent work & MANY THANKS!

from modelsbuilder.original.

danlister avatar danlister commented on July 18, 2024

@zpqrtbnk No problem at all. Thanks for creating an awesome package :)

from modelsbuilder.original.

Mesomorf avatar Mesomorf commented on July 18, 2024

Hi. It seems like I still have this problem.
I have installed the following

  1. Umbraco ModelsBuilder Custom Tool v.2.1.3.43 in VS.
  2. Zbu.ModelsBuilder.AspNet v.2.1.3-beta001
  3. 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.

danlister avatar danlister commented on July 18, 2024

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.

Mesomorf avatar Mesomorf commented on July 18, 2024

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)

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.

zpqrtbnk avatar zpqrtbnk commented on July 18, 2024

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.

Mesomorf avatar Mesomorf commented on July 18, 2024

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.

zpqrtbnk avatar zpqrtbnk commented on July 18, 2024

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.

Mesomorf avatar Mesomorf commented on July 18, 2024

Thanks for the help.

from modelsbuilder.original.

zpqrtbnk avatar zpqrtbnk commented on July 18, 2024

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.

Mesomorf avatar Mesomorf commented on July 18, 2024

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.

zpqrtbnk avatar zpqrtbnk commented on July 18, 2024

beta008 does not change the site-hosted part, only the VSIX extension, which you can download on the release page.

from modelsbuilder.original.

Mesomorf avatar Mesomorf commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.