Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 12 18:42

    batzen on develop

    Fixing build (compare)

  • Nov 12 18:32

    batzen on develop

    Fixing SDK reference (compare)

  • Nov 12 18:27
    batzen closed #169
  • Nov 12 18:27

    batzen on develop

    Fixes #169 (compare)

  • Nov 12 18:26
    batzen milestoned #169
  • Nov 12 18:26
    batzen assigned #169
  • Nov 12 18:26
    batzen opened #169
  • Nov 12 18:26
    batzen labeled #169
  • Nov 08 13:45
    dcm99 commented #168
  • Nov 08 09:05
    dcm99 commented #168
  • Nov 08 08:22
    batzen closed #154
  • Nov 08 08:22
    batzen closed #156
  • Nov 08 06:58
    batzen commented #168
  • Nov 04 07:26
    batzen closed #159
  • Nov 02 15:24
    batzen assigned #168
  • Oct 26 12:01
    dcm99 opened #168
  • Oct 26 12:01
    dcm99 labeled #168
  • Oct 24 12:58
    batzen commented #167
  • Oct 24 12:38
    punker76 commented #167
  • Oct 24 12:37
    punker76 commented #167
elTRexx
@elTRexx
Error MSB3073 The command """" stoped with code 9009. ControlzEx.Showcase C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj 46
and 4 of the same error following :
Error NU1008 Projects using centralised package version managing shouldn't define version on PackageReference elements, but on PackageVersion elements : JetBrains.Annotations;WpfAnalyzers;Microsoft.Xaml.Behaviors.Wpf;XamlColorSchemeGenerator;StyleCop.Analyzers;JetBrains.Annotations;WpfAnalyzers;Microsoft.Xaml.Behaviors.Wpf;XamlColorSchemeGenerator;StyleCop.Analyzers;Microsoft.CodeAnalysis.CSharp;JetBrains.Annotations;WpfAnalyzers;Microsoft.Xaml.Behaviors.Wpf;XamlColorSchemeGenerator;StyleCop.Analyzers;Microsoft.CodeAnalysis.CSharp;JetBrains.Annotations;WpfAnalyzers;Microsoft.Xaml.Behaviors.Wpf;XamlColorSchemeGenerator;StyleCop.Analyzers. ControlzEx.Showcase C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj 1
(error output translated from french on the fly, so might be not 100% that in english)
elTRexx
@elTRexx

To inquiry further, here is the error output from msbuild in CLI :

C:\Users\Aurélien\source\repos\ControlzEx\src>msbuild
Microsoft (R) Build Engine version 16.11.0+0538acc04 pour .NET Framework
Copyright (C) Microsoft Corporation. Tous droits réservés.

Les projets sont générés individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "-m".
La génération a démarré 20/09/2021 00:19:59.
Projet "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.sln" sur le noud 1 (cibles par défaut).
ValidateSolutionConfiguration:
Génération de la configuration de solution "Debug|Any CPU".
Le projet "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.sln" (1) génère "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj" (2) sur le noud 1 (cibles par défaut).
GenerateXamlFiles:
""
'""' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj(46,7): error MSB3073: La commande """" s'est arrêtée avec le code 9009.
Génération du projet "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj" terminée (cibles par défaut) -- ÉCHEC.

Bastian Schmidt
@batzen
That's strange as the CI build runs without any restore issues. Could you run "dotnet restore" in the src folder and see if that works.
elTRexx
@elTRexx
Actually I already did this command before msbuild : git clean -xfd, nuget restore, dotnet restore $sln, msbuild(taken from a comment on this SO question : https://stackoverflow.com/questions/63433471/assets-file-obj-project-assets-json-doesnt-have-a-target-netframework-version)
Bastian Schmidt
@batzen
@elTRexx I applied the same fixes as i did in MahApps.Metro so it should work now.
elTRexx
@elTRexx
I pulled last commit (b4e5ef6), clean the solution (no error this time), build (1 error, same) tried rebuild (1 error, same)
Here is my VS2019 Build output

L'opération de regénération a démarré...

Le projet C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Tests\ControlzEx.Tests.csproj utilise CentralPackageVersionManagement, une fonctionnalité en préversion de NuGet.

Le projet C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj utilise CentralPackageVersionManagement, une fonctionnalité en préversion de NuGet.

Le projet C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx\ControlzEx.csproj utilise CentralPackageVersionManagement, une fonctionnalité en préversion de NuGet.

Restauration effectuée de C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj (en 28 ms).

Restauration effectuée de C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx\ControlzEx.csproj (en 72 ms).

Restauration effectuée de C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Tests\ControlzEx.Tests.csproj (en 280 ms).

1>------ Début de la regénération globale : Projet : ControlzEx, Configuration : Debug Any CPU ------

1>ControlzEx -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx\net462\ControlzEx.dll

1>ControlzEx -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx\net452\ControlzEx.dll

1>ControlzEx -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx\netcoreapp3.1\ControlzEx.dll

1>ControlzEx -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx\net5.0-windows\ControlzEx.dll

2>------ Début de la regénération globale : Projet : ControlzEx.Showcase, Configuration : Debug Any CPU ------

3>------ Début de la regénération globale : Projet : ControlzEx.Tests, Configuration : Debug Any CPU ------

2>Deleting XAML Color Scheme files...

2>Deleting XAML Color Scheme files...

2>Deleting XAML Color Scheme files...

2>Deleting XAML Color Scheme files...

2>Deleting XAML Color Scheme files...

2>Generating XAML files ()

2>'""' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

2>C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj(44,7): error MSB3073: La commande """" s'est arrêtée avec le code 9009.

2>Génération du projet "ControlzEx.Showcase.csproj" terminée -- ÉCHEC.

3>XamlColorSchemeGenerator - 4.0.0.155

3>XamlColorSchemeGenerator - 4.0.0.155

3>XamlColorSchemeGenerator - 4.0.0.155

3>XamlColorSchemeGenerator - 4.0.0.155

3>ControlzEx.Tests -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx.Tests\net452\ControlzEx.Tests.dll

3>ControlzEx.Tests -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx.Tests\net462\ControlzEx.Tests.dll

3>XamlColorSchemeGenerator - 4.0.0.155

3>ControlzEx.Tests -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx.Tests\netcoreapp3.1\ControlzEx.Tests.dll

3>ControlzEx.Tests -> C:\Users\Aurélien\source\repos\ControlzEx\src\bin\Debug\ControlzEx.Tests\net5.0-windows\ControlzEx.Tests.dll

========== Regénération globale : 2 a réussi, 1 a échoué, 0 a été ignoré ==========

elTRexx
@elTRexx
I will try on a fresh new solution to be sure
I Deleted ControlzEx folder from file explorer, cloned again in VS209, and build it : I have same error unfortunately
elTRexx
@elTRexx
I will try from CLI
elTRexx
@elTRexx
On CLI it fail also on Showcase :
ÉCHEC de la build.

"C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.sln" (cible par défaut) (1) ->
"C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj" (cible par défaut) (2) ->
"C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj" (Build cible) (2:3) ->
(GenerateXamlFiles cible) ->
  C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj(44,7): error MSB3073: La commande """" s'est arrêtée avec le code 9009.
  "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.sln" (cible par défaut) (1) ->
  "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj" (cible par défaut) (2) ->
  "C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj" (Build cible) (2:4) ->
    C:\Users\Aurélien\source\repos\ControlzEx\src\ControlzEx.Showcase\ControlzEx.Showcase.csproj(44,7): error MSB3073: La commande """" s'est arrêtée avec le code 9009.

0 Avertissement(s)
2 Erreur(s)
Looking more precisely, it failed on Generating XAML files (net462) and Generating XAML files (netcoreapp3.1)
elTRexx
@elTRexx
But Generating XAML files (net452) and Generating XAML files (net5.0-windows) worked !
I hope it helps to pinpoint the error (maybe on my side, though I have downloaded .Net Core 3.1 SDK before I cloned ControlzEx ?)
Bastian Schmidt
@batzen
Having sdk version 5.0.something (from global.json) or a later 5 version should be enough to build. It's very strange that it works for some framework versions only.
Could you run dotnet --info and post the output here?
elTRexx
@elTRexx

C:\Users\Aurélien\source\repos\ControlzEx\src>dotnet --info
SDK .NET (reflétant tous les fichiers global.json) :
Version: 5.0.401
Commit: 4bef5f3dbf

Environnement d'exécution :
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.401\

Host (useful for support):
Version: 5.0.10
Commit: e1825b4928

.NET SDKs installed:
2.1.602 [C:\Program Files\dotnet\sdk]
2.1.700 [C:\Program Files\dotnet\sdk]
2.1.801 [C:\Program Files\dotnet\sdk]
2.1.802 [C:\Program Files\dotnet\sdk]
3.1.413 [C:\Program Files\dotnet\sdk]
5.0.302 [C:\Program Files\dotnet\sdk]
5.0.401 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Bastian Schmidt
@batzen
That looks ok. Will try to find out what else could be wrong.
Bastian Schmidt
@batzen
@elTRexx I wasn't able to reproduce your issue in Windows Sandbox. The only thing i noticed is that the build behaves strange when the targeting packs for net4.5.2 and/or net4.6.2 are missing.
elTRexx
@elTRexx
I still got the error, but I am able to run the App (under correct .Net I guess), beyond the error message, and understood how your WindowChromeBehavior work (maybe update your readme ?, posted my result here : https://stackoverflow.com/questions/67551705/custom-resize-window-shaking/69288382#69288382).
Thank you to have taken time to look into this anyway.
Bastian Schmidt
@batzen
@elTRexx Glad it's working for you.
If you are still interested in a solution to your build problem the best way would be to create an issue on GitHub so we can try to find out what's wrong in your case.
elTRexx
@elTRexx
@batzen Ok I'll will do that then. Btw, I try to have a custom window shape, so I'm using AllowsTransparency="True" but the what should be transparent background is Black instead. I commented my use of WindowChromeBehavior in XAML to get back to native WPF Window (WindowStyle="None" ofc) and it work. So I suspect it is somewhere in your WindowChromeBehaviorthat the default background is Black ?
Jan Karger ツ ☀
@punker76
@elTRexx The AllowTransparency in WPF is broken for years.
Bastian Schmidt
@batzen
Using AllowsTransparency is prevented by ControlzEx as it causes severe performance and all kinds of other issues most of the time
If you absolutely want to use WindowChromeBehavior with AllowsTransparency=True you can inherit from the behavior, override OnAttached, call base.OnAttached and set AllowsTransparency=True afterwards
But don't report any bugs that are caused by doing so ;-)
elTRexx
@elTRexx
@batzen Ok, I review your code today. Indeed you force AllowsTransparency to false.
Btw, I tried to understand how you manage FlickerFree.
Is the trick of increasing height by 1 pixel in private IntPtr _HandleNCCALCSIZE(WM uMsg, IntPtr wParam, IntPtr lParam, out bool handled) is all it needed ?
Bastian Schmidt
@batzen
Yes, that's all that's needed to be flicker free most of the time. It doesn't matter on which side that happens as long the area is not equal to the window size. I still consider that a bug in windows itself.
elTRexx
@elTRexx
I copy only necessary code to handle your WindowChromeBehavior (so without usign your dll anymore), it work, and yeah, allowing AllowsTransparency=True result in a invisible window !
I guess I'll have to accept my ugly custom window corner and find a color close enough to fade in.
elTRexx
@elTRexx

To keep you update I'm on the point to finish my WPF app. I'm discovering to joy of licenses and other legal stuff I always overlooked before.
Can you guide a little toward the proper way to include the part of your code I use ? I use for my App a common clause + CeCILL license and for my asset CC BY-NC-SA 4.0. I put all of your used code inside a distinct folder, and doesn't changed your MIT license.
Is that OK to do so ? If you want I can grant you access before publishing publicly to be sure.

Btw, regarding to the former issue I have, I'll wait VS 2022 + .Net 6. Maybe It will solve itself with this new environment. If not I'll post it as you requested.

Bastian Schmidt
@batzen
@elTRexx Sorry for responding so late. Why exactly are you using a copy of our code instead of referencing the dll? I think from a legal standpoint it's ok as long as you keep a reference to the source of the code, but i am not a lawyer... I guess if @punker76 would be also ok with that it should be fine.
elTRexx
@elTRexx
Hi, no worry. The reason, but maybe I'm wrong, is because I only use / need the flicker free behaviour you have. I don't need the rest of ControlzEx. So I guessed that instead of embedding whole DLL, I just copied the strict minimum of code for the flicker free behaviour instead.
Elie TAILLARD
@Xaalek
I use controlz:TabControlEx but TabItem are recreated when I change tab. Is it normal?
Bastian Schmidt
@batzen
@Xaalek That shouldn't happen under normal circumstances. Which version are you using? Could you create an issue on github and attach a repro?
Elie TAILLARD
@Xaalek
Alex Fielder
@AlexFielder
Hi there, I am having an issue loading version 5.0.0.1 inside of a .NET 4.8 application; specifically I keep seeing the following error: item.Message = "Could not load file or assembly 'ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e' or one of its dependencies. The system cannot find the file specified." - which is odd because the NuGet package is definitely set to 5.0.0.1
Bastian Schmidt
@batzen
@AlexFielder maybe you have some other nuget reference that references a different version of ControlzEx?
Alex Fielder
@AlexFielder

@AlexFielder maybe you have some other nuget reference that references a different version of ControlzEx?

That's a good point; I am using ControlzEx because it is a dependency of https://github.com/aalex675/Forge.Forms. How would I find out if a project is overriding things?

Bastian Schmidt
@batzen
Viewing the package dependencies on nuget.org is a good source, but according to that (based on the latest version of Forge.Forms and the referenced MahApps.Metro version) it should at least be allowed to use ControlzEx 5, but that can't be correct as every major ControlzEx version contains breaking changes and increases the strong named assembly version. So using ControlzEx 5 with the current version of MahApps.Metro shouldn't even be allowed in the nuget spec of it.
Alex Fielder
@AlexFielder
Thanks @batzen, it looks like I need to spend some time building these dependencies from source, locally. Annoying, granted, but once they're built I guess I can forget about the Nuget packages for a while.
Bastian Schmidt
@batzen
You could, alternatively, point me to the project where you get the error and I'll have a look at what's happening there. 😉
Alex Fielder
@AlexFielder

You could, alternatively, point me to the project where you get the error and I'll have a look at what's happening there. 😉

That unfortunately, is a bit tricky as I am attempting to use these packages inside a private repo that runs inside another private project of mine with the intention of displaying a form inside of a product called Autodesk Inventor.

Bastian Schmidt
@batzen
We could, if you are interested, meet via skype/zoom/teams and have a look at your issue that way. Just write me in private chat for that.
Alex Fielder
@AlexFielder

We could, if you are interested, meet via skype/zoom/teams and have a look at your issue that way. Just write me in private chat for that.

That's great of you to offer, thank you. I have however decided not to use these packages for the time being as they are simply too much effort to get working right now.