AnnaSasDev
AnnaSasDev
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
going to call it a day as well, am glad I found a patch, but am not happy with it
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
I tried to see in a minimal reproducible github repo, if it behaved the same there, with all the packages of InfiniBlazor installed, but there they all nicely work together..., so again it is only this solution that isnt working nicely
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
The following is the csproj file of InfiniLore.InfiniBlazor, but I dont see what could be causing the issue...
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
Okay, I have found the culprit... in the server.csproj file I import these pacakges from my InfiniBlazor, which results in Theming not being loaded
<PackageReference Include="InfiniLore.InfiniBlazor" />
<PackageReference Include="InfiniLore.InfiniBlazor.Contracts" />
<PackageReference Include="InfiniLore.InfiniBlazor.Markdown" />
<PackageReference Include="InfiniLore.InfiniBlazor.Theming" />
<PackageReference Include="InfiniLore.InfiniBlazor.Toasting" />
<PackageReference Include="InfiniLore.InfiniBlazor" />
<PackageReference Include="InfiniLore.InfiniBlazor.Contracts" />
<PackageReference Include="InfiniLore.InfiniBlazor.Markdown" />
<PackageReference Include="InfiniLore.InfiniBlazor.Theming" />
<PackageReference Include="InfiniLore.InfiniBlazor.Toasting" />
Then If I remove <PackageReference Include="InfiniLore.InfiniBlazor" />, Theming magically does get loaded and output to the final build ... One step closer
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
Another thing it could maybe have been is incompatible packges, but I dont think that is the case if I run the add command manually:
C:\Data\Dev\infinilore.cs\src\InfiniLore.Server git:[lorescopes-primary_note]
dotnet add package InfiniLore.InfiniBlazor.Theming


Build succeeded in 0.8s
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : Adding PackageReference for package 'InfiniLore.InfiniBlazor.Theming' into project 'C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj'.
info : Restoring packages for C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj...
info : CACHE https://api.nuget.org/v3/vulnerabilities/index.json
info : CACHE https://api.nuget.org/v3-vulnerabilities/2025.05.23.05.35.29/vulnerability.base.json
info : CACHE https://api.nuget.org/v3-vulnerabilities/2025.05.23.05.35.29/2025.05.23.05.35.29/vulnerability.update.json
info : Package 'InfiniLore.InfiniBlazor.Theming' is compatible with all the specified frameworks in project 'C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj'.
info : Generating MSBuild file C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\obj\InfiniLore.Server.csproj.nuget.g.props.
info : Writing assets file to disk. Path: C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\obj\project.assets.json
log : Restored C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj (in 397 ms).
C:\Data\Dev\infinilore.cs\src\InfiniLore.Server git:[lorescopes-primary_note]
dotnet add package InfiniLore.InfiniBlazor.Theming


Build succeeded in 0.8s
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : Adding PackageReference for package 'InfiniLore.InfiniBlazor.Theming' into project 'C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj'.
info : Restoring packages for C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj...
info : CACHE https://api.nuget.org/v3/vulnerabilities/index.json
info : CACHE https://api.nuget.org/v3-vulnerabilities/2025.05.23.05.35.29/vulnerability.base.json
info : CACHE https://api.nuget.org/v3-vulnerabilities/2025.05.23.05.35.29/2025.05.23.05.35.29/vulnerability.update.json
info : Package 'InfiniLore.InfiniBlazor.Theming' is compatible with all the specified frameworks in project 'C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj'.
info : Generating MSBuild file C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\obj\InfiniLore.Server.csproj.nuget.g.props.
info : Writing assets file to disk. Path: C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\obj\project.assets.json
log : Restored C:\Data\Dev\infinilore.cs\src\InfiniLore.Server\InfiniLore.Server.csproj (in 397 ms).
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
I'll also include a link to the InfiniLore.InfiniBlazor.Themingoriginal csproj file, maybe that can show more insight into the issue https://github.com/InfiniLore/infinilore.infiniblazor/blob/core/src/InfiniLore.InfiniBlazor.Theming/InfiniLore.InfiniBlazor.Theming.csproj
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
Yes, sorry I have also removed them in various tests to make it work. Will remove them now in a new commit, as they are a remainder of some previous stuff I still needed to clean up by the end of the branch. Given that my InfiniLore.InfiniBlazor.Theming nuget package can be installed correctly in other solutions, or even projects within the broken solution (I checked and InfiniLore.Wasm also has this nuget package installed and is included correctly in the build output) I feel like the issue has to be with the InfiniLore.Server itself somehow.
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
Yes I know that, these packages are stored in one universal place and then used where required. but, given that the dll's of all other packages are found within the bin/Release/net9.0/... folder and directly copying the dll of InfiniLore.InfiniBlazor.Theming to this folder does make my built solution work. I can also find the downloaded package in my userprofile's .nuget/packages so no direct issue there either. Like I said in the struck through section, if I manually do a dotnet add package InfiniLore.InfiniBlazor.Theming after the solution has been built, I can run the application without issues. Then if I stop the server and do a rebuild, the package's dll in question dissapears again. I cant reproduce the same error in a minimal reproducible github repo, so I'll link the branch Im currently working on: https://github.com/InfiniLore/infinilore.cs/tree/lorescopes-primary_note With the following project csproj file which is the consumer of the package that breaks it all https://github.com/InfiniLore/infinilore.cs/blob/lorescopes-primary_note/src/InfiniLore.Server/InfiniLore.Server.csproj
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
what is going on?
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
nevermind ... on a rebuild of the project it yeeted itself of it again
24 replies
CC#
Created by AnnaSasDev on 5/23/2025 in #help
Installed package not found
Okay I have fixed it, how ... Im still very very unsure how though. Did another cleaning of all the packages in .nuget/packages in your userprofile. Did a full reinstall of Rider and Visual Studio Then eventually simply did dotnet add package InfiniLore.InfiniBlazor.Theming on the consuming csproj... I have no clue why that one of all things finally did it, as I had deleted and reinstalled it many times through rider as well, but it now works...
24 replies
CC#
Created by AnnaSasDev on 4/18/2025 in #help
Auto Code Cleanup moves top comments in razor file
I know that using code behind cs files will solve this issue, but for small components requiring a code behind will make th code less readable in my opinion, so that isnt a good fix for me
4 replies
CC#
Created by AnnaSasDev on 3/20/2025 in #help
Extending a razor component so I can make developer experience a bit easier
Have eventually "figured out" a solution that I wanted, though Im still debating the fact if this is the best approach in the long run. Made a small manual cli tool, instead of a Roslyn Incremental Generator, that parses the svg files from lucide-static into individual razor files, which follow the naming convention of Li{lucideName.ToPascalCase()} (pseudo). Ive also made the option to resolve the icon the old way, through a simple inject ILucideService so you can now have two options. This service works by using an underlying dictionary with lazy loaded values, which is populated by a Roslyn Incremental Generator meaning hat I can use an Icon in two ways:
<LucideIcon name="signature">
or
<LiSignature/>
<LucideIcon name="signature">
or
<LiSignature/>
For anyone wondering, the full package's code is here: (constructive feedback is always appreciated): https://github.com/InfiniLore/lucide.blazor
4 replies
CC#
Created by AnnaSasDev on 3/20/2025 in #help
Extending a razor component so I can make developer experience a bit easier
But the only way Ive been able to make this work is by doing the following (work in progress testing):
public partial class LucideIcon {
public static RenderFragment Render(string iconSvgContent, Dictionary<string, object>? attributes = null)
=> builder => {
builder.OpenComponent<LucideIcon>(0); // Parent LucideIcon component
builder.AddAttribute(1, "SvgContent", new MarkupString(iconSvgContent));
builder.AddMultipleAttributes(2, attributes ?? new Dictionary<string, object>()); // Dynamically apply attributes
builder.CloseComponent();
};

// Predefined Signature RenderFragment with customizable attributes
public static RenderFragment Signature(string @class = "") =>
Render(Data.Signature._flatSvgContent, new Dictionary<string, object>() {
["class"] = @class,
});
}
public partial class LucideIcon {
public static RenderFragment Render(string iconSvgContent, Dictionary<string, object>? attributes = null)
=> builder => {
builder.OpenComponent<LucideIcon>(0); // Parent LucideIcon component
builder.AddAttribute(1, "SvgContent", new MarkupString(iconSvgContent));
builder.AddMultipleAttributes(2, attributes ?? new Dictionary<string, object>()); // Dynamically apply attributes
builder.CloseComponent();
};

// Predefined Signature RenderFragment with customizable attributes
public static RenderFragment Signature(string @class = "") =>
Render(Data.Signature._flatSvgContent, new Dictionary<string, object>() {
["class"] = @class,
});
}
which then results in the following workaround.
@LucideIcon.Signature(@class:"validation-message")
@LucideIcon.Signature(@class:"validation-message")
Because razor files are already brought dozn to C# through a roslyn generator, Im unsure if I could build something like I envisioned with the <LucideIcon.Signature/> idea
4 replies
CC#
Created by AnnaSasDev on 3/1/2025 in #help
Issue with Github Actions when using Node & Dotnet together
Issue is resolved The issue could be traced back to IncrementalGeneratorInitializationContextExtensions.SelectLucideSvgFiles where we were checking if a filepath matches a regex (why of all reasons I did this, ill never remember) and the age old / vs \ paths caused the issue. Changed it to a simpler FileEndsWith() and thus the issue is resolved
2 replies
CC#
Created by AnnaSasDev on 2/20/2025 in #help
Issue with configuring Auth0 and the "Allowed Callback url"
from as far as I can understand their docs, I think the callback is the OIDC redirect_uri , which I can't override myself as far as I understand I eventually got a beginning to the functionality that I wanted by using the OnAuthenticationStateChangedfrom PersistingRevalidatingAuthenticationStateProvider https://github.com/InfiniLore/infinilore.cs/blob/6acef6a31869d16fbb9063c3ac3a0a6d15f96847/src/InfiniLore.Server.Services/AuthenticationStateSyncer/PersistingRevalidatingAuthenticationStateProvider.cs#L63 Which I can then at a later point use to create a command which creates a user for my database I just feel frustrated because this feels like such a convoluted workaround to get to the functionality that I want
13 replies
CC#
Created by AnnaSasDev on 1/9/2025 in #help
Roslyn not finding a referenced package
right, I've learned something new today then ... Thanks so much!
8 replies
CC#
Created by AnnaSasDev on 1/9/2025 in #help
Roslyn not finding a referenced package
... what the .. yeah that fixed it?!? I'm so confused why this works ... but okay
8 replies
CC#
Created by AnnaSasDev on 1/9/2025 in #help
Roslyn not finding a referenced package
<!-- Ensure important files are packaged correctly -->
<ItemGroup Condition="'$(Configuration)' != 'Benchmark'">
<None Include="$(SolutionDir)LICENSE" Pack="true" PackagePath="" Visible="false" />
<None Include="$(SolutionDir)README.md" Pack="true" PackagePath="" Visible="false" />
<None Include="$(SolutionDir)assets/icon.png" Pack="true" PackagePath="" Visible="false" />
</ItemGroup>

<!-- Reference dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all" />
</ItemGroup>

</Project>
<!-- Ensure important files are packaged correctly -->
<ItemGroup Condition="'$(Configuration)' != 'Benchmark'">
<None Include="$(SolutionDir)LICENSE" Pack="true" PackagePath="" Visible="false" />
<None Include="$(SolutionDir)README.md" Pack="true" PackagePath="" Visible="false" />
<None Include="$(SolutionDir)assets/icon.png" Pack="true" PackagePath="" Visible="false" />
</ItemGroup>

<!-- Reference dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all" />
</ItemGroup>

</Project>
8 replies
CC#
Created by AnnaSasDev on 1/9/2025 in #help
Roslyn not finding a referenced package
csproj file of CodeOfChaos.GeneratorTools :
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>

<DevelopmentDependency>true</DevelopmentDependency>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>

<!-- Main package metadata -->
<PackageId>CodeOfChaos.GeneratorTools</PackageId>
<Version>1.1.0</Version>
<Authors>Anna Sas</Authors>
<Description>A library to help you create code generators more easily</Description>
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-generator_tools/</PackageProjectUrl>
<PackageTags>roslyn code-generator generator source-generator source</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<DebugType>embedded</DebugType>
<PackageLicenseFile Condition="'$(Configuration)' != 'Benchmark'">LICENSE</PackageLicenseFile>
<PackageReadmeFile Condition="'$(Configuration)' != 'Benchmark'">README.md</PackageReadmeFile>
<PackageIcon Condition="'$(Configuration)' != 'Benchmark'">icon.png</PackageIcon>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>

<DevelopmentDependency>true</DevelopmentDependency>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>

<!-- Main package metadata -->
<PackageId>CodeOfChaos.GeneratorTools</PackageId>
<Version>1.1.0</Version>
<Authors>Anna Sas</Authors>
<Description>A library to help you create code generators more easily</Description>
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-generator_tools/</PackageProjectUrl>
<PackageTags>roslyn code-generator generator source-generator source</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<DebugType>embedded</DebugType>
<PackageLicenseFile Condition="'$(Configuration)' != 'Benchmark'">LICENSE</PackageLicenseFile>
<PackageReadmeFile Condition="'$(Configuration)' != 'Benchmark'">README.md</PackageReadmeFile>
<PackageIcon Condition="'$(Configuration)' != 'Benchmark'">icon.png</PackageIcon>
</PropertyGroup>
8 replies