fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Problem adding a XSharp Core project to existing solution...

Problem adding a XSharp Core project to existing solution... 1 week 2 days ago #10640

  FoxProMatt_MattSlay's Avatar Topic Author FoxProMatt_MattSlay Offline Posts: 175
I am using latest XSharp Bandol 2.06 GA and Visual Studio 2019...

I have an existing solution in Visual Studio and when I try to add a new Project, choosing XSharp "Core Library Core Dialect with Runtime" as the project type, after I give it a name, it gives an error cannot find a template named CoreClassLibrary.xsproj in a zip file named ClassLibraryCore.zip

Could not find file C:\Users\Matt\AppData\Local\Microsoft\VisualStudio\16.0_40 b1 c065\VTC\4b2f56a14405eb653331 b5b6de41 dc6b\~PC\Projec tTemplates\ClassLibraries\ClassLibraryCore.zip\CoreClassLibrary.xsproj'.

Indeed there is no such file by the name "CoreClassLibrary.xsproj" in the ZIP, but there is a file named "ClassLibrary.xsproj" in the zip file, as you can see in screenshot below.

What's weird is that I tried this an another machine with the same exact setup, and it does not give the error and it works fine by adding the project. I checked the ZIP on that machine, and the required file is also missing from the zip, so I am baffled why I do not get the same error on the second machine.

BTW - I *renamed* the b]ClassLibrary.xsproj[/b file to b]CoreClassLibrary.xsproj[/b, and it works fine now. But something just isn't right here...

Also, prior to doing the renaming trick, I also did a full un-install of X# from the machine, then rebooted and installed X# again, but it still gave me the same error.





Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by FoxProMatt_MattSlay.

Problem adding a XSharp Core project to existing solution... 1 week 2 days ago #10644

  robert's Avatar robert Offline Posts: 1158
Matt,

We have renamed some of the project templates for VS and added some new ones (classlibraries for each dialect)
Apparently we have missed one reference in the CoreClassLibrary template. The vstemplate file in this template references CoreClassLibrary.xsproj but the file in the folder is still named ClassLibrary.xsproj.
I will fix this for the next build.
You can fix this yourself too if you want:
- open "c:\Program Files (x86)\XSharp\Extension\Project\ProjectTemplates\ClassLibraries\ClassLibraryCore.zip"
- rename ClassLibrary.xsproj to CoreClassLibrary.xsproj
- save it back to this folder (c:\Program Files (x86)\XSharp\Extension\Project\ProjectTemplates\)
- Then run "c:\Program Files (x86)\XSharp\Uninst\deployvs2015.cmd" and/or "c:\Program Files (x86)\XSharp\Uninst\deployvs2017.cmd" and/or "c:\Program Files (x86)\XSharp\Uninst\deployvs2019.cmd"

Robert
XSharp Development Team
The Netherlands

Please Log in or Create an account to join the conversation.

  • Page:
  • 1