Click here to Skip to main content
14,971,296 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Slacker00711-Dec-20 3:20
professionalSlacker00711-Dec-20 3:20 
GeneralRe: .Net Framework vs .Net 5 Core PinPopular
#realJSOP11-Dec-20 4:05
mva#realJSOP11-Dec-20 4:05 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Kirk Hawley11-Dec-20 6:26
professionalKirk Hawley11-Dec-20 6:26 
GeneralRe: .Net Framework vs .Net 5 Core Pin
kholsinger11-Dec-20 13:48
Memberkholsinger11-Dec-20 13:48 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Member 1028198630-Jan-21 6:02
MemberMember 1028198630-Jan-21 6:02 
GeneralRe: .Net Framework vs .Net 5 Core Pin
r_hyde10-Dec-20 8:26
Memberr_hyde10-Dec-20 8:26 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Nelek10-Dec-20 8:49
protectorNelek10-Dec-20 8:49 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Reelix11-Dec-20 0:11
MemberReelix11-Dec-20 0:11 
.NET Core is alarmingly finicky in how it's built as it defaults to a larger cross-platform "I don't need the .NET Framework" build instead of simply a native one as .NET Framework did.

Try and run
dotnet publish -r win-x64 --self-contained false -o bin/

Then check your bin folder. Should be far smaller with far less files with the limitation that it only runs on Windows.

For a small Linux-only build, you can use
dotnet publish -r linux-x64 --self-contained false -o bin/


Whilst this is smaller, you will now need the .NET 5 Framework (Not to be mistaken with the .NET Framework Framework) installed as you did with regular .NET Framework (One of the reasons your one is so much larger is that it bundles the entirety of the Framework in it as well as it assumes it's not natively installed)
-= Reelix =-

GeneralRe: .Net Framework vs .Net 5 Core Pin
BDieser11-Dec-20 9:55
MemberBDieser11-Dec-20 9:55 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Nelek11-Dec-20 10:14
protectorNelek11-Dec-20 10:14 
GeneralRe: .Net Framework vs .Net 5 Core Pin
#realJSOP11-Dec-20 10:19
mva#realJSOP11-Dec-20 10:19 
GeneralRe: .Net Framework vs .Net 5 Core Pin
#realJSOP13-Dec-20 1:23
mva#realJSOP13-Dec-20 1:23 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Greg Utas13-Dec-20 2:12
mvaGreg Utas13-Dec-20 2:12 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Nelek13-Dec-20 9:18
protectorNelek13-Dec-20 9:18 
GeneralRe: .Net Framework vs .Net 5 Core Pin
zezba900011-Dec-20 13:44
Memberzezba900011-Dec-20 13:44 
GeneralRe: .Net Framework vs .Net 5 Core Pin
#realJSOP11-Dec-20 23:05
mva#realJSOP11-Dec-20 23:05 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Member 792148314-Dec-20 2:32
MemberMember 792148314-Dec-20 2:32 
GeneralRe: .Net Framework vs .Net 5 Core Pin
#realJSOP14-Dec-20 2:42
mva#realJSOP14-Dec-20 2:42 
GeneralRe: .Net Framework vs .Net 5 Core Pin
zezba900015-Dec-20 8:16
Memberzezba900015-Dec-20 8:16 
RantRe: .Net Framework vs .Net 5 Core Pin
Marc Clifton6-Jan-21 11:42
mvaMarc Clifton6-Jan-21 11:42 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Super Lloyd1-Feb-21 19:08
MemberSuper Lloyd1-Feb-21 19:08 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Chris Maunder5-Feb-21 14:04
cofounderChris Maunder5-Feb-21 14:04 
GeneralRe: .Net Framework vs .Net 5 Core Pin
#realJSOP7-Feb-21 10:01
mva#realJSOP7-Feb-21 10:01 
GeneralRe: .Net Framework vs .Net 5 Core Pin
Chris Maunder7-Feb-21 10:17
cofounderChris Maunder7-Feb-21 10:17 
GeneralCSS: [ ] selector Pin
raddevus4-Dec-20 5:16
mvaraddevus4-Dec-20 5:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.