Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

"ReplacesVersions" not working in Release_23 #27

Open
michaelstaemmler opened this issue May 1, 2021 · 6 comments
Open

"ReplacesVersions" not working in Release_23 #27

michaelstaemmler opened this issue May 1, 2021 · 6 comments

Comments

@michaelstaemmler
Copy link

Hi,

first of all, many thanks for this project!

Either I am doing something wrong, or there is bug in Release_23:
When I create a new file, entries in the field "Replaces Versions" seem to have no effect on the generated *.xml-file in Release_23.

In Release_22 it works, but the behavior is a little bit different than expected: The content of the *.xml file is only updated if I leave the "Ersetzt Versionen" textbox and set the cursor to another one. When I press "Speichern/Speichern unter" while the cursor is still in this textbox, the change is ignored.

Best regards,
Michael

@mgeramb
Copy link

mgeramb commented Feb 17, 2022

@thelsing @michaelstaemmler I found the issue. The exclamation mark is missing:
image
Could anybody fix this?

@thelsing
Copy link
Owner

This file is generated from the xsd. And the '!' is correct. The ReplacesVersions property is specified if it's not null or empty.

@mgeramb
Copy link

mgeramb commented Feb 19, 2022

I do not know the background, but if I use the code above, replacing version of app program in ETS is working, with the original code not. Maybe the place where the property will be checked is wrong?

@mgeramb
Copy link

mgeramb commented Feb 19, 2022

@thelsing Maybe you misunderstood me. In the code in your repo is no '!'. But it should be there. If this is generated code, then the issue is in the generator.

@thelsing
Copy link
Owner

I created a new prerelease. Can you check it please?

@mgeramb
Copy link

mgeramb commented Feb 20, 2022

@thelsing First try with no luck. The app does not start at all. In the event log I found the reason:
Application: CreateKnxProd.exe
CoreCLR Version: 6.0.21.52210
.NET Version: 6.0.0
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException: Could not load file or assembly 'PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

It seems, that I need to install the desktop pack for .NET Core. Maybe it makes sense to build it as single file application: https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file/overview

Please let me know if I should wait with installing the desktop pack, just to have a test system without.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants