The project that I'm currently developing consists in two different sub-projects: a xamarin.forms application and an aspnet core project used by the first. For now I need only the android version of it, so let us focus only on this aspect. The aspnet project should be able to provide a page where the user can download the .apk. For now I've put the .apk file in a folder in the web project directory and all works perfectly. What I want to accomplish now is to automatize this process: everytime i compile the entire solution, the system itself should prepare the apk package and put it in the right folder. At first it seemed easy, but I've not found a way to do it. Doesn't anyone have tried this, yet? Thanks!
Related
I am porting a game to Windows 10 and Xbox One, which requires that I have certain manifest files in my UWP app for defining the capabilities and socket usage of the application.
I understand the uses of these manifest files; however, I do not understand how I am able to configure the manifests that are built or injected into UWP applications that Unity3D creates when building.
Specifically, I need to add the file networkmanifest.xml to my UWP app to define socket usage for use with Xbox Live. Here is a link to Microsoft's documentation on the manifest file.
Research into this area has left me drawing a blank, and I'm not sure if it is because I'm fundamentally looking at this problem wrong.
There are two good options here:
Write a script that automatically gets run after the build (using OnPostprocessBuild) and copy/inject your manifest into the generated project there.
Modify the generated Visual Studio solution and commit the files you modified to your project source control. When building your game from Unity, always build on top of the same modified project. Unity will not overwrite the changes you made.
When I open a sample Blinky application in Visual Studio, compile and run it, it gets automatically deployed to the target configured WindowsIoT device. After that, on Windows 10 machine where I compile it, the application binaries are located in the bin sub-folder of the project folder as one would expect.
I would like to automate the deployment, so that I could run deployment code
without Visual Studio, specify target device and the binaries location and it would deploy it. I cannot find any API that allows
to deploy apps to Windows IoT, how do I do that?
This shiny Windows IoT stuff is a new area, and there is not a lot of info available apart from the samples and the getting started page. Any pointers are appreciated.
Update: As noted in comments, once one start thinking of mass production, they will probably need to conciser ICD. This, is not, however the problem I'm trying to solve currently. I would like to figure out how I can provide Over-the-Air updates to my UWP application running on Raspberry Pi and Windows IoT. I also would you like to know how I can automate build / deployment in general, but that may be automatically solved if I have a proper OTA solution.
There is a set of instructions on how to do it, which can be found in the same github repo you are linking in your question, but in a different folder. Note, that you need an appx for these instructions to work, and it's not created by the solution build by default.
This page provide (non IoT specific) instructions on using VS to build the appx. And this blog post talks about the command line tool that can be used for making appx.
Note, that the last two links are also talking about publishing an application to app store, so you'll need to make some mental adjustments around that.
I am currently building a Universal Windows Platform app, using an Azure database. Think all Microsoft stuff.
I created a mobile service and database through the official manage.windowsazure site. There I got 3 steps to follow, in order to add Azure :
Download a personalized Mobile Service project and add it to your project
Connect app and store data in it:
Add WindowsAzure.MobileServices Nuget Package to the project.
Add a public MobileServiceClient variable to app.xaml.cs
Add a sample ToDoItem class to your project
Use the Mobile Services client library to store data in the mobile service
Publish app to the cloud
Now, I downloaded that starter project and put it in one of the UWP's sub folders, cause it has to be incorporated in Visual Studio Online's version control, when I commit the whole thing. Screenshot of the folder structure is here, in case it's important: http://i.imgur.com/91K7Ehq.png
Then I added the WindowsAzure.MobileServices package to both my project and the add-on Service project, just to be sure. I also added that variable, no problem. Though I didn't add that ToDoItem class, nor store any data already, since it wasn't necessary yet. Ditto for the publishing.
Now the problem: When I try to build the project or open any of the Service files, I get a huge load of errors:
http://i.imgur.com/yuPSKzf.png
http://i.imgur.com/PtZEiZG.png
Does anyone know where I went wrong? Did I forget something important? Do I have to add one project as reference to another? Or add another reference to the Service project?
I ended up solving it. I downloaded the entire project from Azure and modified that to my needs. So basically remake the whole project.
net development. I am working in a website project and I am trying to update one of the dll files. I've search for hours for a solution on stackoverflow, but no luck.
Our website project in Visual studios is composed of one website that uses three C# projects. I am trying to update just one of these C# projects. Currently the website is in production and the DLL files of these projects are in the /bin folder.
I opened up the solution in VS and made my changes.
I built the whole solution and retrieved the new dll.
I stopped our in-process website with IIS and overwrote the dll and restarted it again.
I get an Missing Method Exception as an error when I do this. I was hoping for a straight forward way of updating our website project because I only need to change about two lines of code and swapping dll files seems like the easiest way of doing this.
Thank you guys for your help and be patient with me I am a slow learner and I ask a lot of questions.
One of the reason of this to occur could be that your dll is built using different version of .net framework than what is on your server. You can check that and see if that resolves the issue.
I've created a WPF project using MVVM pattern and another project for a web service.
In my WPF project, i've some views and I can navigate between them, everything works.
Now, I want to create a setup with InstallShield, I add project outputs, etc... but when I install the application, the buttons in the main view are not working as if the viewmodels were not include in the setup.
Any ideas ?
Thanks.
Where your installation does not give you the correct results, ask yourself the following questions. Move to the next if you answered 'yes'. If no, then that is a good starting point for your investigation:
Does it work in Release mode on your development PC?
Did the installed application load?
Are all your project outputs present in the installation directory?
Are all the installed files the right version?
Are your configuration files valid?
Have the correct version of the dependencies been installed? (.net version, etc)