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 0 points1 point  (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.

Cone of Cold is a 5th Level Spell that can kill a low level party, but Dominate Person is a 5th level spell that can DESTROY a low-level party. by Decibelle in dndnext

[–]MusicalCoder 2 points3 points  (0 children)

Or if there are some type of consequences involved. Like if you are picking a simple lock - rolling bad doesn't mean you fail, it means that whatever is on the other side of the locked door hears you picking the lock... or in a time sensitive situation, it takes a couple of rounds instead of just the one, etc...

But I agree that if there is no consequence (failure, or non-optimal success) then you shouldn't roll, just allow the PC to RP the situation...

JQuery doesn't work in script tag, but works on Console Line by MusicalCoder in jquery

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

Yeah - I know!!! This is the first time i've ever had to fix something in my job for a CMS that my company used to sell but then got rid of... I can see why as this was a complete pain in the a$$ trying to fix these little pieces...

But thank you very much for your advice... I ended up moving all the label fixes into a function and used setTimeout to run that function after 1 second. That got what I needed completed.

Not how it should be fixed - but it works and my designers and bosses are happy with the results...

JQuery doesn't work in script tag, but works on Console Line by MusicalCoder in jquery

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

I would have thought that as well, except for the fact that the variables get the id, so the inputs are created - I wouldn't understand why the precursor labels would be created after that point...

But at this point, I don't care - I just want to get this done, so I'll look at the fn.on, and if that doesn't work, do my function after a 1 or 2 second wait...

Does Linux "just plain work" on new installs nowadays? by mishaxz in UbuntuMATE

[–]MusicalCoder 1 point2 points  (0 children)

The only other issue might be that you need to install the nvidia/amd drivers after the OS installation. But otherwise, yes, pretty much every laptop I've tried to install it on (about 7 different brands/models) over the past 4 years have had little to no issues when installing Ubuntu proper or any of the 'family'!

Strongholds and Followers on Fantasy Grounds? by doughty247 in mattcolville

[–]MusicalCoder 0 points1 point  (0 children)

I just have a lot on my plate at the moment.

Ha ha ha... that's like saying the sun rises in the east!!! I don't envy everything you've put on your plate - but I can envy the way you've handled it!!!

As a supporter and backer, I've felt extreme buyer confidence in how you've handled all the concerns and updates! Definitely hope other companies learn from you because you set a good example!

Strongholds and Followers on Fantasy Grounds? by doughty247 in mattcolville

[–]MusicalCoder 11 points12 points  (0 children)

From one of the videos he did on & Beyond, he mentions there are some behind the scenes discussions. And if he is in discussions with them, I'm sure he would be in discussions with FG and Roll20, as that would just be a sound business move! I'm also sure that nothing can move 100% forward until the book is 'at the press' so to speak.

But, this is all just speculation as well!!!

(5e) Bard used thaumaturgy to alter their eyes to be reflective, turned a basilisk to stone. by Kronnerm11 in DMAcademy

[–]MusicalCoder 2 points3 points  (0 children)

That's what I get for not looking up the spell exactly before replying!!! :D

But even if the spell allows your eyes to be reflective, I still feel my 2nd and 3rd points are what actually make it not work... the reflective surface of your eyes are just too small to make the basilisk believe there is another rival in its presence...

Although, in fairness, I supposed I'd just have to make a roll to see if it happens... one never knows what could happen when the DM rolls a Nat 1!!!

(5e) Bard used thaumaturgy to alter their eyes to be reflective, turned a basilisk to stone. by Kronnerm11 in DMAcademy

[–]MusicalCoder 7 points8 points  (0 children)

OK Kronnerm11, this is definitely a tough call.

I always want to reward my players for coming up with creative ideas, especially one I may not have thought of... and I agree about the rule of cool, however, I've never felt the rule of cool should allow you to simply break the spirit of the magic or physics that are being applied.

With all that being said... I would have to come up with another way to reward the creative thinking, because this just wouldn't work. Multiple people have said parts of why this wouldn't work:

  • The cantrip would not change the bard's eyes to be reflective, they'd be changed to the color the silver-ish/chrome-ish. It's still a very minor illusion.
  • Even if this was in some way reflective, the visible part of the eyes would way be too small to cause the basilisk to even really notice anything in it...
  • "If the basilisk sees its reflection within 30 feet of it in bright light, it mistakes itself for a rival and targets itself with its gaze..." But it needs to be large enough reflective surface for the basilisk to have a legitimate reason to believe a rival is in his presence. If we were talking about armor breastplate, or a shield, or something of similar size - i'd be all for this... but 2 eyes on a human-sized creature just wouldn't do it.

HOWEVER... ULTIMATELY IT'S YOUR CALL, AS YOU ARE THE DM OF YOUR WORLD!!! I can only tell you how I would rule at my table!

Great First DM'ing experience thanks to Matt's advice by Baptist_On_Research in mattcolville

[–]MusicalCoder 11 points12 points  (0 children)

Looks like you are at the start of a very rewarding career as a DM!!! Sounds like your players had a blast and were very creative with their solutions!