MODiX
MODiX
CC#
Created by Qualy on 2/21/2025 in #help
project failed to load
* Open powershell in a terminal in admin mode as in the following video: https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4 * copy/paste the following script:
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
in case of an invalid setup detected, it will: * tell you that it did (or not) detected an invalid Path setup * in case some action are require it will ask you to Press Enter to confirm
47 replies
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
If you have no further questions, please use /close to mark the forum thread as answered
9 replies
CC#
Created by Qualy on 2/21/2025 in #help
error on new WPF project
70 replies
CC#
Created by WantToBeeMe on 2/20/2025 in #help
Where is selectionForeground in avalonia
If you have no further questions, please use /close to mark the forum thread as answered
9 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
If you have no further questions, please use /close to mark the forum thread as answered
19 replies
CC#
Created by Silk&Song on 2/20/2025 in #help
What parts of these should i put in functions?
74 replies
CC#
Created by Katt Does Art on 2/20/2025 in #help
✅ Solved! :D
If you have no further questions, please use /close to mark the forum thread as answered
59 replies
CC#
Created by Katt Does Art on 2/20/2025 in #help
✅ Solved! :D
59 replies
CC#
Created by Dyda on 2/20/2025 in #help
✅ Problem with binding (#AvaloniaUI)
If you have no further questions, please use /close to mark the forum thread as answered
32 replies
CC#
Created by Axivex on 2/20/2025 in #help
Trying to enable/disable sprite of a different object
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
59 replies
CC#
Created by Silk&Song on 2/20/2025 in #help
✅ attack dosent deccreae defense and defending dosent end your turn
If you have no further questions, please use /close to mark the forum thread as answered
10 replies
CC#
Created by Theos on 2/19/2025 in #help
Calculate if jump is possible
30 replies
CC#
Created by Katt Does Art on 2/19/2025 in #help
✅ Extreme Newbie - Can't Call Class Element Properly.
namespace Namespace;

[Attribute]
public class Class
{
public string PublicField;
private bool _privateField;

public int PublicProperty { get; set; }

public Class() {} // Constructor

public void Method(int parameter)
{
var localVariable = parameter;

int LocalMethod(string param) { return 3; }
}
}
namespace Namespace;

[Attribute]
public class Class
{
public string PublicField;
private bool _privateField;

public int PublicProperty { get; set; }

public Class() {} // Constructor

public void Method(int parameter)
{
var localVariable = parameter;

int LocalMethod(string param) { return 3; }
}
}
158 replies
CC#
Created by Katt Does Art on 2/19/2025 in #help
✅ Extreme Newbie - Can't Call Class Element Properly.
scope A {
thing a;
scope B {
thing b;
}
}
scope A {
thing a;
scope B {
thing b;
}
}
thing a is available in scope A and scope B thing b is available only in scope B
158 replies
CC#
Created by Adam on 2/19/2025 in #help
✅ [solved] efcore owned entity issue
If you have no further questions, please use /close to mark the forum thread as answered
8 replies
CC#
Created by ! on 2/19/2025 in #help
✅ debug
dotnet publish -c Release -r <runtime identifier> -p:PublishSingleFile=true Use of -p:PublishSingleFile=true implies --self-contained true. Add --self-contained false to publish as runtime-dependent. -r RID and -p:PublishSingleFile=true can be moved to .csproj as the following properties:
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
but to target multiple RIDs, you have to use dotnet publish with the -r option for each RID. You can also add -p:IncludeNativeLibrariesForSelfExtract=true to include native libraries (like Common Language Runtime dlls) in the output executable, but be aware of drawbacks and consider using an installer framework instead of that property with PublishSingleFile. You might want to instead publish your application compiled Ahead Of Time to native code, see $nativeaot for examples. Single file publishing | Runtime Identifier (RID) catalog | dotnet publish
16 replies
CC#
Created by ! on 2/19/2025 in #help
✅ debug
16 replies
CC#
Created by Katt Does Art on 2/19/2025 in #help
✅ Extreme Newbie - Can't Call Class Element Properly.
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
158 replies
CC#
Created by KidKai25 on 2/18/2025 in #help
✅ convert synchronous code to async?
If you have no further questions, please use /close to mark the forum thread as answered
114 replies