tcunit / TcUnit-Runner

Program that makes it possible to automate runs of TcUnit unit tests
Other
34 stars 17 forks source link

fix: Always find *.tsproj in sln-file #50

Closed densogiaichned closed 9 months ago

densogiaichned commented 10 months ago

By using a RegEx to find the *.tsproj file, this fix always returns the path. The RegEx is using the GUID {B1E792BE-AA5F-4E3C-8C82-674BF9C0715B} for a TwinCAT project file, thus not being confused by other items or names. Solution project items have a specific GUID depending on the type. Also, added simple unit-test.

fixes #49 relates to #34, #35

sagatowski commented 9 months ago

What a neat solution! Thanks @densogiaichned! It never crossed my mind about the specific unique GUIDs.

densogiaichned commented 9 months ago

It's like TwinCAT: GUIDs everywhere. learned this the hard way during VS extensions development ;)

sagatowski commented 9 months ago

tsproj-files in TwinCAT 4026 also have the same GUID! I'll try this fix out and merge it in!

sagatowski commented 9 months ago

Tested, works perfect. Thanks @densogiaichned.