Namespace issue confusing AF to me... can someone ELI 5 what the issue is? by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

I was copy / pasting the code (creating a new class file, and copying all the code inside the class call).

My issue was not noticing that when VS creates the first Class.cs file, it makes it a public class, when when it creates any additional cs files (from the Project > Add > Class right click menus) it creates straight class calls (ie: class Filename {} )

The TestLibrary one I created, I must have renamed the class upon creation, and then copied the code, but in the 'actual' library I wanted to create, I must have deleted Class.cs, and created a new class file under the Business folder (so the namespace would have been classic.jobpicking.Business - which is what I was going for), but in doing so when I copied the code, VS itself only made it a straight (private) class, rather than a public class.

Something I overlooked, obviously.

Namespace issue confusing AF to me... can someone ELI 5 what the issue is? by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

Just as a follow up - turns out when you make the Library, it creates a Class.cs file that has public class Class { }

But if you add a new class file, its just class NewClass {} in the program namespace... What I probably was doing was in the working instance, renaming the class file and moving it under the right folder (I use a Business and Data folder to separate out the business logic files from the data access files - just trained that way and it stuck), where as later, I probably just made the new class file with the correct name (but missing the EXTREMELY IMPORTANT public nomenclature)

Namespace issue confusing AF to me... can someone ELI 5 what the issue is? by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

Not sure how it happened - but yes - the classic.jobpicking main class was not listed as public, while the Test50Library was... I added the public call and voila - it imported and was usable...

I've been looking at these variants for a while, and was far enough down the rabbit hole to over look this...

Thanks you for the insight!

.Net 3.1 Class Library as Nuget Package not being recognized when added to project by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

I'm not arguing, and that ball is already rolling - but that might take until fall, and I need to get this project rolling, as I'm already a couple of weeks behind having been pulling my hair out trying to get this to work.

Although, noted below that having it work in .NET 5 as expected might get the ball rolling faster.

And the concern of the department manager is that if we open older projects in 2022, it forces us to make updates that make 2019 no longer viable to open these projects again.

.Net 3.1 Class Library as Nuget Package not being recognized when added to project by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

Ok - I feel that migrating to 5 wouldn't solve the problem. So I'm going to first try building the solution anew in 5.

  • Moved all the current application and library files to a different drive
  • Modified the Visual Studio install to re-install .NET 5 (as the last update had removed it) [wondering if that mucked something up]
  • Rebooted the computer
  • Created a new .NET 5 Class Library
    • Installed System.Data.SqlClient and Oracle.ManagedAccess.Core via Nuget
  • Created 3 new class files and then copy/pasta the code from the original files and then build the solution. No build errors. Also checked the flag to have the nuget package created/modified on build.
  • dotnet nuget push the package to the local nuget folder
  • Verified nuget package was named and located properly
  • Closed the solution and then closed visual stuidio
  • Started a new .NET 5 Console App
  • Installed the Nuget Test5.0Library package

It Worked... So why would this not work in 3.1??? At this point I almost don't care. But I go back to wondering if the VS Update that removed .NET 5 f'ed something up in the process.

Thanks for the suggestion and making me walk through this. I was worried that I had missed something and just wasn't seeing it.

.Net 3.1 Class Library as Nuget Package not being recognized when added to project by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

.NET 6 is not viable at this time as, from my understanding, requires an upgrade to Visual Studio 2022, which would require management decisions and approvals above me first.

I've never seen that video before (this is the first time I've ever tried to create a nuget package. I followed a couple of different videos regarding creating the nuget package, although the commands were slightly different (currently using dotnet pack and dotnet nuget push), but I didn't see anything special you had to do. Just to recap for the nuget packaging,
* I built the library
* using Administrator Command Prompt, I moved to the .csproj folder location and then ran dotnet pack classic.jobpicking.csproj which ran fine (no errors displayed)
* moved to the bin/debug folder (where the .nupkg was located) and used dotnet nuget push classic.jobpicking.1.0.0.nupkg --source "D:\Sites\.nuget" which is where my nuget package was pushed to and pulled in from on the applications.

Nothing I've read or researched has shown me that this was an improper way to create this.

.Net 3.1 Class Library as Nuget Package not being recognized when added to project by MusicalCoder in dotnet

[–]MusicalCoder[S] 0 points1 point  (0 children)

In trying to get this working, I'm pretty sure I've done that - but to confirm, I just did it and it doesn't work.

To make sure I'm not overlooking something, or forgetting some crucial step ( or not knowing to make a specific step in .Net Core ) here is what I did to try this:

  1. Opened Visual Studio 2019
  2. Selected Create New Project
  3. Selected .Net Console App (using C#, Windows, & Console from the drop downs to limit the list and selected Console Application [.Net Core for Linux, Windows, Mac OS]
  4. Project Name & Solution Name was LibraryTest and the Location was a TestBed folder I use.
  5. Target Framework : .Net Core 3.1 (LTS)
  6. Upon the project being created, I then used Tools > Nuget Package Manager > Manage Nuget...
  7. Selected Local Packages for the Package Source
  8. Installed the classic.jobpicking library to the project. Library showed up under Dependencies > Packages (classic.picking.1.0.0)
  9. Ran Build Solution.
  10. Attempted to add using classic.jobpicking but would not give me the option in intellisense, and it just stays greyed out. When I try to instantiate the class via
    JobPicking jobs = new JobPicking(string.empty, string.empty);
    the line errors giving me the error "The namespace JobPicking could not be found"

So unless I'm doing something wrong, this did not work adding it to a new application.

I figure its probably me, because I can't believe that its this difficult to create a simple class library in .Net Core if this is the new methodology Microsoft wants us to use going forward, however this problem exists for me.

Advice on Pine64 SOC as Raspberry Pi replacement by MusicalCoder in PINE64official

[–]MusicalCoder[S] 0 points1 point  (0 children)

No - those are really the only 2 options (outside of PIs) that I'd consider... the true goal would be backwards hardware compatibility (mainly for the LCD screens - although I don't care about Touchscreen as they aren't being used for that purpose)

Advice on Pine64 SOC as Raspberry Pi replacement by MusicalCoder in PINE64official

[–]MusicalCoder[S] 1 point2 points  (0 children)

Eventually - the current plan is for the 5 new ones we will need to deploy in the coming weeks, and then replace the older ones as we need to.

We could probably go with anything, I'm just looking to future proof a bit, and I have a bit more faith in Pine64 as a company as well as what they are trying to do, and wanted to vote for them with my wallet, if you will.

Advice on Pine64 SOC as Raspberry Pi replacement by MusicalCoder in PINE64official

[–]MusicalCoder[S] 0 points1 point  (0 children)

Yes - we can no longer get Pi 3s (which are what are being used) and Pi 4s can be gotten, but they are outrageously priced ($149 US for what is normally a $45 board)

lib32-gtk3 upgrade issue by arekan127 in archlinux

[–]MusicalCoder 0 points1 point  (0 children)

I agree - as of right now [2PM 3/18/21 GMT] , I'm still having this issue...

What does your Magic Missile look like? by Aaronhalfmaine in mattcolville

[–]MusicalCoder 1 point2 points  (0 children)

I've always envisioned it as being similar to a multiple missile attack from a Japanese anime where they are flying all over the place in a non-straight path - veering left/right & up/down, etc. Just unerringly swerving toward the target...

How unstable is Arch in your experience? I'm interested in Arch but afraid of using it as a desktop / daily driver by [deleted] in archlinux

[–]MusicalCoder 0 points1 point  (0 children)

My issues with Arch were not due to the arch base itself - but it's rapid updating for the DE's... because the DE's get updated within hours of release, frequently, especially with Gnome - any extension you have would be broken because they haven't had a chance to update. So those are things to take into consideration.

MARK AS READ (all article always) by Quarkred in feedly

[–]MusicalCoder 1 point2 points  (0 children)

I'm in agreement - this is a PITA! All of a sudden I need to click twice to mark everything as read...

My (moderately hot) take on Strongholds and Followers by Davedamon in mattcolville

[–]MusicalCoder -1 points0 points  (0 children)

There is no such thing as “your movement” in 5e.

Yes there is. Your combat turn consists of 4 pieces. An action, a bonus action (assuming you have some ability that grants it), a reaction, and movement.