Generated files gous to 'project folder' instead selected Project Folder in Model Settings

6 posts, 0 answers
  1. Igor
    Igor avatar
    13 posts
    Member since:
    Jul 2011

    Posted 27 Jul 2011 Link to this post

    In Q2 i found that after changes and saving schema .cs files generated not in folder pointed by option 'Project Folder' in Advanced Options pane of Model Settings window but in root of real project.
    Only after erasing files and resetting 'Project Folder' files generated properly.
    All repeats during next schema saving.


      
  2. Nikola
    Admin
    Nikola avatar
    27 posts

    Posted 28 Jul 2011 Link to this post

    Hi Igor, 

    I was not able to reproduce the behavior you described. Could you make sure that:
    1. 1. You have not selected "Generate in nested namespaces" option on the Advanced Options tab.
    2. 2. You have selected an existing folder in the "Project Folder" option and you have rights to write in it.
    If the above doesn't help you solve the problem, please send us a support ticket and attach a sample project which we can use to reproduce the issue.

    Don't hesitate to let us know if you have any further troubles.

    Greetings,
    Nikola
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. Igor
    Igor avatar
    13 posts
    Member since:
    Jul 2011

    Posted 29 Jul 2011 Link to this post

    Hi
    I have selected an existing folder in the "Project Folder" option and you have rights to write in it.

    But today i can't reproduce this problem repeatedly. After reselecting project folder all goes right. Two days ago i did it many times. I think there was some other error in schema which prevent rewriting option.

    Now i only can open old project. After pressing Ctrl+S on open schema .CS files was generated in root of project.

    .rlinq fragment:

        <CodeGenerationSettings>
          <OutputProjectName>ConsoleApplication1</OutputProjectName>
          <OutputProjectFolder>\Ris55Dicts2\</OutputProjectFolder>
          <OutputPath>D:\Development\svn.training\Telerik\OpenAccessTests\ConsoleApplication1\ConsoleApplication1</OutputPath>
          <MappingDefinitionType>Xml</MappingDefinitionType>
        </CodeGenerationSettings>

    After reselecting project folder files generated in right place.

    .rlinq fragment:
        <CodeGenerationSettings>
          <OutputProjectName>ConsoleApplication1</OutputProjectName>
          <OutputProjectFolder>\Ris55Dicts2\</OutputProjectFolder>
          <OutputPath>Ris55Dicts2\</OutputPath>
          <MappingDefinitionType>Xml</MappingDefinitionType>
        </CodeGenerationSettings>

    I think problem is not serious and fixed now.
    May be I hurried in this case but by working with designer i face up with little troubles and go to edit .rlinq xml.

    Interesting that after selection file folder .rlinq looks like that...

        <CodeGenerationSettings>
          <OutputPath>D:\Development\svn.training\Telerik\OpenAccessTests\ConsoleApplication1\ConsoleApplication1\Ris55Dicts2</OutputPath>
          <MappingDefinitionType>Xml</MappingDefinitionType>
          <OutputMode>FileFolder</OutputMode>
        </CodeGenerationSettings>

    In this case <OutputMode>FileFolder</OutputMode> are present and only <OutputPath>...</OutputPath> are present.
    In case of project folder <OutputProjectFolder>...</OutputProjectFolder> and <OutputPath>...</OutputPath> are present and <OutputMode>...</OutputMode> are not present.





  5. Nikola
    Admin
    Nikola avatar
    27 posts

    Posted 02 Aug 2011 Link to this post

    Hi Igor,

    I was finally able to reproduce the behavior you described, but not through the Visual Designer, I edited the rlinq file manually. Code generation in the root of the project could happen in one of the following scenarios:
    1. 1. It could happen if you first choose a project folder, then delete it, thus invalidating the <OutputPath>. 
    2. 2. It could also happen if you manually edit the <OutputPath> and set it to a non-existent location, or delete it. You mentioned that you manually edited the .rlinq file, so maybe this is the case.
    In both cases you have to choose the "Project Folder" again, so the .rlinq file can be regenerated correctly.
    It would be great if you could share with us how exactly you got to this problem with the visual designer.

    As for the missing <OutputMode/> tag, the reason behind this is that the "Project Folder" option is actually the default value of <OutputMode/>.

    Regards,

    Nikola
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  6. Igor
    Igor avatar
    13 posts
    Member since:
    Jul 2011

    Posted 05 Aug 2011 Link to this post

    Ok.
    I have found it.


    It's happens after changing 'Model Name' in 'Model Settings' window.
    I created schema with one class. Model name was 'EntitiesModel'.Output Project Folder was set properly.   

        <CodeGenerationSettings>
          <OutputProjectName>Alda.OpenAccess.Ris5x</OutputProjectName>
          <OutputProjectFolder>\NewFolder\</OutputProjectFolder>
          <OutputPath>NewFolder\</OutputPath>
          <MappingDefinitionType>Xml</MappingDefinitionType>
        </CodeGenerationSettings>

    After opening model settings and change of a name of model  to 'EntitiesModel2',  files was generated out of Output Project Folder. 

    Add xml looks like that..

        <CodeGenerationSettings>
          <OutputProjectName>Alda.OpenAccess.Ris5x</OutputProjectName>
          <OutputProjectFolder>\NewFolder\</OutputProjectFolder>
          <OutputPath>D:\Development\svn.dev.net\Ris_Net4\PathologyAtlas\Alda.OpenAccess.Ris5x</OutputPath>
          <MappingDefinitionType>Xml</MappingDefinitionType>
        </CodeGenerationSettings>

    Hm..
    The same happens after changing trace and loging options.
  7. Nikola
    Admin
    Nikola avatar
    27 posts

    Posted 09 Aug 2011 Link to this post

    Hi Igor,

    Thanks for describing the problem to us. It is indeed a reproducible bug.
    Please find your Telerik points updated for reporting this issue. 

    The bug will be fixed in our next release.

    Kind regards,
    Nikola
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
DevCraft banner