• 0

C# without .Net?


Question

In VS.Net, you're only given the option to compile C# apps to the .Net platform. Does anyone know how to compile C# apps without the .Net stuff? I really like the language, it's just a bitch to get people to download a 21 runtime and wait 5 secs for the thing to load when it runs...

Link to comment
https://www.neowin.net/forum/topic/19606-c-without-net/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

If you decide to use c# for your applications, then you are using .NET, and if distribute that application - people NEED .NET installed to run it.

Any new release of software (or service packs) from Microsoft should include the .NET runtimes (if they have any intelligence). So hopefully people will have .NET installed without realising it, until then you can:

1. Package your application on a CD with the .NET runtimes.

2. Provide a link and get people to download them.

Hope this helps.

Link to comment
https://www.neowin.net/forum/topic/19606-c-without-net/#findComment-164646
Share on other sites

  • 0

Well, basically I was hoping I could create something similar to a static linked program via C#. I figure it's possible, just wondering how.

And, i know C# != .Net, it's just very much based around the .Net Framework.

My Logic: If it can run on the end machine, there has to be some way to get it to run as a single exeuctable.

So, the hunt continues...

Link to comment
https://www.neowin.net/forum/topic/19606-c-without-net/#findComment-164653
Share on other sites

  • 0
  Quote
Originally posted by timdorr

I figure it's possible, just wondering how

You figure wrong. If you decide to use c#, people will HAVE to install the .NET runtimes to run your application, no ifs, ands, ors or buts - they will have to install it.

  Quote
Originally posted by timdorr

Next time: Search first...

http://www.go-mono.com/

Keep searching, this is a Linux variation, so your c# (.NET) programs will run under Linux.

Link to comment
https://www.neowin.net/forum/topic/19606-c-without-net/#findComment-164716
Share on other sites

  • 0

C# is not tied to .NET, but the framework libraries are. That means, if you use any classes that you didn't create yourself, then you are tying yourself to .NET.

Statically linking with the libraries is not possible.

You could write a native compiler, but it wouldn't be of much use without the libraries and you would probably end up implementing something much like .NET anyway.

Link to comment
https://www.neowin.net/forum/topic/19606-c-without-net/#findComment-165489
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Windows 11 receives a handful of new AI features by Taras Buria Microsoft is supercharging its operating system with a handful of new AI-powered features. Those with compatible computers (mostly Copilot+ PCs) can download a new Windows 11 update that introduces new AI experiences. One of the biggest updates is the Settings app, which now features agentic search to understand complaints about your computer. You can click the search box and tell Windows what is wrong. For example, "my mouse cursor is too small." Windows will then process your request and suggest taking action on your behalf. You can also ask for specific changes like, "change my screen resolution to 1920x1080." The Settings agent is now available for users with Snapdragon-powered Copilot+ PCs. It is coming soon to Intel and AMD-based Copilot+ PCs. Click to Do has received several new actions: Practice in Reading Coach helps improve reading skills by giving feedback and offering suggestions on how to improve. Read with Immersive Reader displays text in a distraction-free environment with the ability to adjust text size, spacing, font and background theme, have text read aloud, break words into syllables and highlight parts of speech. The picture dictionary shows images for unfamiliar words. Draft with Copilot in Word turns a portion of text into a full draft. Actions in Microsoft Teams let you click an email to send a message or schedule a meeting. More AI is available in the Photos app. After a couple of months in testing, the Relight feature is now rolling out, allowing users to adjust lights with AI. You can place three light sources or use built-in presets to edit your photos. Like with the Settings app, this feature is currently available to Snapdragon-powered devices only. Paint now has a sticker generator and a new object select tool that uses AI to isolate the object and edit individual elements, even if they are part of one layer. Snipping Tool has received the "Perfect Screenshot" feature to help you select parts of the screen for a proper cropped screenshot, and a new Color Picker to read colors on the screen in different formats (available on all PCs, not only Copilot+ PCs). Finally, the Copilot app now supports Highlights, a new feature that enables Copilot to show you how to perform specific tasks in the current app on the entire desktop. Today's updates are not just about AI and sticker generation. Microsoft is also improving the performance and security of its system with a redesigned blue screen of death and the new Quick Machine Recovery system. You can read more about those changes here. If you want to get all these updates today, download the latest non-security update for Windows 11 version 24H2, which is now available.
    • Yet my Surface Pro 7+ was running ok with 23H2, only having issues with the laggy-mess that's the new File Explorer...
    • Brave browser blocks Windows feature that takes screenshots of everything you do on your PC by David Uzondu If there's anything Microsoft Build 2024 will be remembered for, it's the introduction of the controversial Windows Recall on its new Copilot+ PCs. Pitched as a "photographic memory" for your computer, this feature works by constantly taking screenshots of your activity to build a detailed and searchable timeline of everything you have ever seen or done. Almost immediately, critics and security researchers labeled the feature a privacy nightmare, pointing out that a single piece of malware could gain access to a user's entire digital life. In response to the backlash, Microsoft promised that users will be able to filter which apps get recorded, but some developers are not waiting around. Just about a month after the feature became generally available for Copilot+ PCs (it is now rolling out to users in Europe), some app developers took matters into their own hands to protect their users. One such company was Signal, which implemented an opt-out feature called "Screen Security" to prevent its chats from being captured. It cleverly uses a Digital Rights Management (DRM) flag to black out the application window during a screenshot attempt, using the same technology that streaming services like Netflix use to prevent people from recording movies. Now, Brave Browser has joined the party, announcing on X that it will block Recall by default with its v1.81 update, which is expected in the coming weeks. While Microsoft stated that Recall would not capture content from private browsing windows, Brave's new update just tells the Windows operating system that all of its browser windows are private. This prevents Recall from snapshotting anything you do in Brave, not just the activity in a designated private tab. In its announcement, the company did give Microsoft some credit for making changes following the initial public outcry, such as making Recall an opt-in feature. However, the company still feels that giving any application unrestricted access to a user's browsing history is a huge risk. If you, for some reason, like Windows Recall, you can disable the upcoming protection by navigating to Settings, then Privacy and Security, and toggling off the "Block Microsoft Recall" option.
    • I have the Tab A9+ also, and I agree with all your points. I really like this tablet.
  • Recent Achievements

    • Week One Done
      SmileWorks Dental earned a badge
      Week One Done
    • Community Regular
      vZeroG went up a rank
      Community Regular
    • Collaborator
      Snake Doc earned a badge
      Collaborator
    • Week One Done
      Snake Doc earned a badge
      Week One Done
    • One Month Later
      Johnny Mrkvička earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      587
    2. 2
      Michael Scrip
      199
    3. 3
      ATLien_0
      192
    4. 4
      +FloatingFatMan
      131
    5. 5
      Xenon
      122
  • Tell a friend

    Love Neowin? Tell a friend!