Bill
Bill
CC#
Created by Bill on 12/4/2023 in #help
Asssembly Version Wrong
It was working for a little bit, but now it's displaying v1.0.0-alpha+9fb67d6af368e6cd5a05c8f4013272d4a644ca89 instead of v1.0.0-alpha after adding user secrets.
private string? GetVersion()
{
return typeof(Worker).Assembly
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion;
}
private string? GetVersion()
{
return typeof(Worker).Assembly
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion;
}
22 replies
CC#
Created by Bill on 12/4/2023 in #help
✅ Assembly Version
I'm trying to add both a Version Suffix and Prefix to my assembly version and print it out. This is what I have:
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
var assembly = Assembly.GetExecutingAssembly();
var assemblyVersion = assembly.GetName().Version;
var assembly = Assembly.GetExecutingAssembly();
var assemblyVersion = assembly.GetName().Version;
But when I print out the version, I get 1.0.0.0.
1 replies
CC#
Created by Bill on 12/3/2023 in #help
✅ Assembly No Respecting Version
I hve <Version>1.0.0-alpha1</Version> set, bit the version is showing as ``1.0.0.0]. Any reason why it's not respecting the alpha?
17 replies
CC#
Created by Bill on 10/8/2023 in #help
❔ Analyzers Project
Hello, I've added an Analyzers project with the following NuGet packages (in the file) that I found from https://github.com/cybermaxs/awesome-analyzers?tab=readme-ov-file and then referenced this project on all of my others. My question is, is this overkill are you just okay with the following:
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisMode>Recommended</AnalysisMode>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisMode>Recommended</AnalysisMode>
I'm trying to help my team build the highest quality code possible
9 replies
CC#
Created by Bill on 10/4/2023 in #help
Issues using Visual Studio Code to connect to host
Hello, I am trying to connect to my host using the following configuration file with Visual Studio Code:
Host Volvox.Apollo-prod
HostName IP_HERE
User root
IdentityFile ~/.ssh/billslaptop
Host Volvox.Apollo-prod
HostName IP_HERE
User root
IdentityFile ~/.ssh/billslaptop
When I try this I get the following error:
[Info - 16:44:25.709] Resolving ssh remote authority 'ssh-remote+\x56olvox.\x41pollo-prod' (attemp #1)
[Trace - 16:44:25.746] Identity keys:
/Users/billchirico/.ssh/billslaptop ssh-rsa SHA256:5gDkdXSTD+JeYosbQQhP64nOVDaRJGdIHTSUei9cxAw=
[Info - 16:44:26.216] Trying no-auth authentication
[Info - 16:44:26.313] Trying publickey authentication: /Users/billchirico/.ssh/billslaptop ssh-rsa SHA256:5gDkdXSTD+JeYosbQQhP64nOVDaRJGdIHTSUei9cxAw=
[Error - 16:44:26.406] Error resolving authority
Error: All configured authentication methods failed
at ye (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:143771)
at /Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:442303
at authHandler (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:438020)
at Ee (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:146644)
at process.processTicksAndRejections (node:internal/process/task_queues:78:11)
[Info - 16:44:25.709] Resolving ssh remote authority 'ssh-remote+\x56olvox.\x41pollo-prod' (attemp #1)
[Trace - 16:44:25.746] Identity keys:
/Users/billchirico/.ssh/billslaptop ssh-rsa SHA256:5gDkdXSTD+JeYosbQQhP64nOVDaRJGdIHTSUei9cxAw=
[Info - 16:44:26.216] Trying no-auth authentication
[Info - 16:44:26.313] Trying publickey authentication: /Users/billchirico/.ssh/billslaptop ssh-rsa SHA256:5gDkdXSTD+JeYosbQQhP64nOVDaRJGdIHTSUei9cxAw=
[Error - 16:44:26.406] Error resolving authority
Error: All configured authentication methods failed
at ye (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:143771)
at /Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:442303
at authHandler (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:438020)
at Ee (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:146644)
at process.processTicksAndRejections (node:internal/process/task_queues:78:11)
I am able to connect to this host using Termius so I'm not sure why I can't via VS Code.
1 replies
CC#
Created by Bill on 10/3/2023 in #help
❔ What editorconfig setting would I use to force each property to a new line?
Which .editorconfig setting would I use to achieve the following: For example, I would like Content, Source, and Sender to be on a new line?
context.Messages.Add(new Message
{
Content = "Test", Source = "Discord", Sender = "Test"
});
context.Messages.Add(new Message
{
Content = "Test", Source = "Discord", Sender = "Test"
});
8 replies
CC#
Created by Bill on 9/26/2023 in #help
❔ EditorConfig Option to always go to new lines
Using this code as an example, which editorconfig option do I set to make each member always on a new line?
// Convert the dictionary to a list of DTOs
var responses = modelScores.Select(score => new AnalysisResponseDto
{
Model = xxx, Score = xxx
}).ToList();
// Convert the dictionary to a list of DTOs
var responses = modelScores.Select(score => new AnalysisResponseDto
{
Model = xxx, Score = xxx
}).ToList();
2 replies
CC#
Created by Bill on 9/22/2023 in #help
❔ Google Workspace Issue
The workspace when I login just directs me to the admin dashboard and no matter where I go it still does even if I select calendar or any of the apps.
4 replies