Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › VB.NET - Compile a project with .NET included?
New Posts  All Forums:Forum Nav:

VB.NET - Compile a project with .NET included?

post #1 of 8
Thread Starter 
Is it possible to create an application with the required .NET version included that DOESN'T require a restart? This is because I need to take a project into school tomorrow and the computers there don't have the correct version of the .NET framework and they have a program that resets the main HDD of the computer every time it is restarted to keep it virus-free. Any suggestions would be greatly appreciated
    
CPUGraphicsRAMHard Drive
Intel Core i7-4650U Intel HD Graphics 5000 Samsung 8GB DDR3 Samsung 512GB SSD 
OS
Macintosh OS X "Yosemite" 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Intel Core i7-4650U Intel HD Graphics 5000 Samsung 8GB DDR3 Samsung 512GB SSD 
OS
Macintosh OS X "Yosemite" 
  hide details  
Reply
post #2 of 8
Are you unable to simply compile it for a different version of .Net or are there specific things you need from the version you are compiling with?

Anyway, I don't remember needing to restart after installing .Net updates, but I could be way wrong about that since its been a while...
    
CPUMotherboardGraphicsRAM
Phenom II X6 1055T Asus M5A97 EVO 2 x Radeon 5870 2x4GB, 2x8GB 
Hard DriveHard DriveOSMonitor
120GB SSD 500GB WD 7300RPM x 2 Windows 7 Pro x64 2 x 23" Dell IPS 
PowerCase
750w OCZ A Desk 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Phenom II X6 1055T Asus M5A97 EVO 2 x Radeon 5870 2x4GB, 2x8GB 
Hard DriveHard DriveOSMonitor
120GB SSD 500GB WD 7300RPM x 2 Windows 7 Pro x64 2 x 23" Dell IPS 
PowerCase
750w OCZ A Desk 
  hide details  
Reply
post #3 of 8
I'm not 100% but I think you can install the framework with a -norestart parameter.
However that may just mean that you woun't be able to call it until you restart.
Find out the version that is on the school computers and make sure you have that version installed.
Then in visual studio go to your Project Properties > Complile > Advanced Compile Options and there you should see a Target Framework drop down, change it to the one at school.
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
post #4 of 8
If you are you asking if you're able to somehow include the required runtime within the application that requires the runtime to run, the answer is no .
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
post #5 of 8
Agree above. If it is possible or school allows, you can create a setup project and specify to include the correct .net framework. When you run the setup on that computer, if it doesn’t have correct .net, then setup will kick off the installation of .net. After this, you can just run the application. Or, depending on what version of .net on that computer, you can compile your app in .net 2.0, it will run if that computer has 3.5 or 4.0.
post #6 of 8
Quote:
Originally Posted by linskingdom View Post
Agree above. If it is possible or school allows, you can create a setup project and specify to include the correct .net framework. When you run the setup on that computer, if it doesn’t have correct .net, then setup will kick off the installation of .net. After this, you can just run the application. Or, depending on what version of .net on that computer, you can compile your app in .net 2.0, it will run if that computer has 3.5 or 4.0.
I think all of those would require rebooting and that was the op's issue... upon reboot the hdd resets or is reimaged back.
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
post #7 of 8
Quote:
Originally Posted by Sunriselad View Post
I think all of those would require rebooting and that was the op's issue... upon reboot the hdd resets or is reimaged back.
If app only uses core namespaces, then it doesn't need to reboot.
post #8 of 8
You could also try using Mono (a drop-in .NET replacement). It supports a "portable" mode I believe. No need to install = no need to reboot.
The Beast
(12 items)
 
  
CPUCPUMotherboardGraphics
Xeon x5670 Xeon X5670 Supermicro X8DT3-LN4F NVIDIA Quadro FX 580 
RAMHard DriveMonitorKeyboard
96GB DDR3 RDIMM Corsair Force GT HP LP2480zx Corsair K95 RGB with Brown switches 
PowerCaseMouseAudio
Corsair RM1000i Corsair Obsidian 750D Logitech MX1100 Creative X-Fi Platinum 
  hide details  
Reply
The Beast
(12 items)
 
  
CPUCPUMotherboardGraphics
Xeon x5670 Xeon X5670 Supermicro X8DT3-LN4F NVIDIA Quadro FX 580 
RAMHard DriveMonitorKeyboard
96GB DDR3 RDIMM Corsair Force GT HP LP2480zx Corsair K95 RGB with Brown switches 
PowerCaseMouseAudio
Corsair RM1000i Corsair Obsidian 750D Logitech MX1100 Creative X-Fi Platinum 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › VB.NET - Compile a project with .NET included?