This might be a dumb question but I've been developing for a while and I still can't figure this out. Sometimes when I download samples for WP7 applications it shades out the "run application". I can build it and it succeeds but I can't run it. Anyone know how I can run these samples?
The sample I'm looking at is the "Farseer Physics Engine 3.3.1 Samples XNA" at http://farseerphysics.codeplex.com/releases/view/64108.
The WP7 project hasn't been set as the default one. In the Solution Explorer, right-click on Samples XNA WP7 and click Set as Startup Project. You should then be able to deploy.
Edit - If you find that you can't deploy because you get:
The application could not be launched for debugging. Verify that the
application is installed on the target device.
go to Properties...Configuration Settings and make sure Build and Deploy are both checked
In the device dropdown is Windows Phone Emulator or Windows Phone Device selected?
Sometimes with samples that dropdown will have neither selected and therefore can not run until one is selected.
Related
I'm trying to emulate a high resolution screen for development purposes; however, from looking around, it looks like the VS emulator will only work with Store Apps / UWP. Is there a way to trick / configure VS into using the emulator for a WPF desktop application?
Alternatively, has anyone found any other, imaginative solution to this kind of issue?
My fallback is to set-up a Hyper-V VM for this, but this feels like overkill for what I need (I'm also not sure I'll be able to set this to the screen ratio that I need).
EDIT:
Having looked into Hyper-V, I can't see any way to configure the display to the desired (portrait) resolution of 2160x3840.
You don't want the emulators for this. You want the simulator.
The Windows Simulator creates an RDP session back to the current machine. It simulates the input and output to the session, but it does not emulate the actual code: that's still running on the same machine.
While VS only launches the simulator for you for UWP apps, once it's running you can run other apps such as your WPF app, Visual Studio, remote debugger hosts, etc.
You can also run the simulator explicitly. It should be installed somewhere like C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\15.0\Microsoft.Windows.Simulator.exe
The emulators are Hyper-V images of the target OS (e.g. Windows 10 Mobile) and won't run your WPF app.
If getting a 4k monitor is not an option you need to use something like this.
http://www.hdtvsupply.com/display-emulator.html
I'm a newbie developer who develop a software for a company, although I am quite familiar with programming I rarely develop a software for a company, now after I join a company I started to get a problem creating a software.
I must develop a software that can be installed and updated on client computer easily, I solve this by using clickonce, then the problem arise, nearly all software I develop must have report viewer, I try using reportviewer from microsoft, but this give me more problem when installing, I try everything I found on the web to make a setup that easy to install, but I keep struggle when installing reportviewer, it keeps error on some computer although sometimes it install without error on other computer.
I need a suggestion how I can develope a program that can display a report and print it without install any other program on the client. I use C# on Visual Studio 2015, I develop WPF, and web using it.
Use nuget in your project and add the following dependencies to it
Microsoft.ReportViewer.2015.Runtime
Microsoft.ReportViewer.VS2015.WinForms
Launch your report viewer like this:
var dlg = new ReportPreviewDialog();
dlg.ReportViewer.LocalReport.DisplayName = "My report";
dlg.ReportViewer.LocalReport.DataSources.Add(new ReportDataSource("datasource1", data));
dlg.ReportViewer.LocalReport.DataSources.Add(new ReportDataSource("datasource2", data2));
dlg.ReportViewer.LocalReport.ReportEmbeddedResource = "YourClient.TheReport.rdlc";
dlg.ShowDialog();
TheReport.rdlc is your report as resource in your project (=> Build Action: Embedded Resource). Make sure the namespace is correct or your report won't be found.
Works with WPF.
Try to visit this Deploying Reports and ReportViewer Controls.
If the first option doesn't works you can try this step.
Go to your project properties or press (Alt + Enter).
Click the Publish tab.
On the Install Mode and Settings click Application Files button.
Find all Microsoft.ReportViewer dlls and select the Publish status to Include/Include (Auto).
Click OK.
Here is some image:
Application Files Form
I've been using Inspect.exe from the Windows SDK to examine the properties of a WinForms application but noticed that I didn't see any of the properties (for example, the AutomationId) whilst running the application from Visual Studio (F5 to run.) However, if I ran the .exe from the bin\debug folder I could see the properties fine.
The source I was using was example code downloaded from UI Automation Custom Provider Samples - Part 3.
I'm wondering why this happened since I'm sure another machine that I had tried this on worked fine and I wasted time poking around in debug mode wondering why my UI Automation properties weren't visible. Obviously there's a workaround but I'd like to understand why this was happening and have a record of the problem for other people to find!
I've struck upon the answer - because I had launched Visual Studio as Administrator but the Inspect.exe tool as standard user then the properties being reported back were a sub-set of what I should have seen. As soon as I launched Inspect.exe as Administrator it worked!
I tried an app I wrote that works on Win7 boxes. Using the Win8 Preview, IE just asks to rerun Silverlight Install. Same thing happens on the PlanetX demo game from the Silverlight site. Is there a trick to get the Win8 Preview to run it or is it true Silverlight is getting killed off for HTML5/Script (yuckkk!!##$) If this is not true then MS needs to speak up LOUDLY. Writers are all over the Web with a Silverlight is dead/legacy story. Somebody please tell me now so I can cut my losses if I need to.
.
You can run Silverlight apps just fine on the Windows 8 preview. The Metro version of IE supports no plug-ins - not Silverlight, not Flash, not anything else. Just drop into the desktop (for example, click the Windows Explorer icon) and launch the non-metro version of IE. Silverlight will work fine. You can even install out of browser (OOB) applications and a launch tile will appear for them on the Metro start page.
I would like to customize the user install process for my Silverlight application. I would need to repeatedly go through the installation process on my development workstation Short of uninstalling before each change I make and going through the install process again, is there a way to make my browser think Silverlight is not installed?
Yes, there is a way to make your browser think SL is not installed.
In Internet Explorer 8, I can go to Tools > Manage Add-ons. From there, I select to Show "All add-ons." I then click on Microsoft Silverlight and click "Disable."
I saw Tim Heuer do this process to demonstrate the look of Silverlight being uninstalled in an application.
I imagine there's a way to disable plug-ins, add-ons, extensions, etc. for other browsers.
You could set up a Virtual PC or Virtual Box instance and keep resetting it to a "before Silverlight was installed" snapshot.