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.
Related
I don't create VS projects normally; it's been mostly changes to existing ones so far, and I'm fairly new to VS, and I'm the only real software engineer on my team. I've done project creation for tutorials, but this is new and doesn't follow a tutorial that I see.
I'm trying to create a VS project that is like another one, which shows it's Target framework is .net framework 4.5, console application. Building it is creating an .exe file and .pdb file in the bin/debug dir.
Then there's my new project that I need to create. When I created a new VS project, trying to follow the same setup, it created a .net core 3.1 framework (didn't show .net framework 4.5 to choose, and it wasn't showing in project application setup to choose .net framework 4.5), console application, and building it creates a dll with the project name, but also dll's for win32.registry, system.data.sqlclient, system.diagnostics.eventlog, project.exe, project.pdb, runtimeconfig.dev.json, etc, and it's all in bin/debug/netcoreapp3.1. The plan is to run the .exe with a batch file like the other one, which is why I chose that one to copy the project style.
The solution architect said we need a SOAF service. He said:
• The Parent program's Web Services Interface - SOA Fabric-enabled (SOAF) web services in the Parent program are Windows Communication Foundation (WCF) web services with support for enhanced security and other features provided through SOAF.
• AddTask Service – A SOAF service, AddTask operation receives task information from an external task-generating system and adds the task to the parent program for a specific user or a queue. This operation adds a task to either a queue or to a specific user.
My questions are:
Does it matter that I have that bin/debug/netcoreapp3.1 folder with all of those dlls' and exe, etc, whereas the old format had just bin/debug/exe and pdb in it? My plan is to copy the .exe file and none of the .dll's to run for the batch.
How do I create a SOAF service, and is that the right kind of project for that? I don't turn up anything in a search for SOAF service visual studio.
I'm sorry if I'm a little unsure of this, but it's pretty new to me. This uses Visual Studio 2019.
Here is the header info in the Code Sample that uses the TaskService (note that we will also be passing client credentials in ws-security token):
using System;
using System.ServiceModel;
using Tests.Integration.TaskServiceReference;
using Trizetto.CareAdvance.Service.Operation.Tests.Integration;
namespace Tests.Integration.TaskService
{
internal class Client : ISOAFServicesClient
{
I installed framework 4.8 through VS under target frameworks. It wasn't selectable there, under project properties as I would expect.
I wound up having to re-create my VS project. For template, I found framework 4.8 through searching templates in project creation using framework c# console search params. I then copied my files over to the new project folder, and added them as existing items through the solution tool.
I'm still not entirely sure about the SOAF part.
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!
I've been trying to use the Azure Media Service for a shared native app in Visual Studio 2015.. But whenever i try to install the windowazure.mediaservices.extensions package, i get an error because apparently it isn't cross platform compatible on all three OS. However i can add another nuget Microsoft.windowsAzure.Managment.MediaServices - but it does not give me the same namespace as the one i get with the media services samples i downloaded earlier.
Does anyone have experince with the two nugets - and can tell me the difference? And if so - could provide me with a link to a sample that uses the last mentioned nuget.
An additional remark/question - i cannot get it to work on xamarin.forms either - not on shared or portable project.
I have seen multiple Windows Services getting installed in my computer with just an Setup.exe or .msi... is it something special that it needs to be done with the setup project to let such Windows Services installed in a easy way without Installutil.exe?
I have tried and it just doesn't install the Service. I know how to use Installutil but that I would think it's just for testing. I need to be able to install my windows service with an Setup.exe because I want to distribute my Service with its configuration Tray app.
What would be the correct way to install the service and then my app? They both use a same DLL created in the same solution.
Problem while Building a Setup Project for a windows Service?
I looked at the link above but its about the Setup Project which I already know how to do, the problem is how to make my Setup project working... my DLL is getting up in place, the Tray app is working as well, the problem is the Service not getting installed it is just giving me the .exez
but I need it to be installed correctly like be up and running at reboot and in the Service Control Manager.
Option 1
1. Download Wix
2. Download and install Wix Windows Service Setup Project Template
3. Create a new wix setup project and see what you get
This is the easiest way to create a *.msi without any option windows
Option 2
Follow this blog post. Same as option 1 but without the project template. If you go the WiX route sooner or later you will see that the project template provides basic stuff. If you want more advanced stuff you need to learn WiX a little bit and use its candle.exe, light.exe, pyro.exe etc.
Option 3
I wrote a short post how I usually do this.
Good luck
Here is a simple template for creating a *.msi installer for a Windows Service with WiX:
http://www.schiffhauer.com/wix-template-for-installing-a-windows-service/
I was able to specify my DLL dependencies with File tags.
I am using visual studio web project to install my web application and do some customization like modifying connection string in web.config file during install time.
Now, My requirement is to create a patch for the web application so that next time the web installer only the changed files.
Is there is any one to do it using visualk studio 2010 ide or any other way.We can't use third party products like Installshield,wix,innosetup etc.
Please suggest.
Visual Studio doesn't support patches for setup projects. It supports only major upgrades.
If you really don't want to use other setup authoring tools, you can try creating the patch manually. You can read more about this here:
http://msdn.microsoft.com/en-us/library/aa370578(VS.85).aspx
But it won't be easy.
If it is just Web project, I would recommend re-deploy instead of patching. Meaning you just deploy new version of site, above the previous one.
Except some really comprehensive case that strategy works all the time. I use simple xcopy deploy for all my projects.
You can write a mini C# app to do it. You can have the list of assembly files in a configuration. On loading of the app, it checks the timestamp difference between server and client files. On finding the change, the mini app pushes the changes file.
Hope, it will resolve your issue
There may be better suited solutins to deply websites than using an installer. For one, there's Web Deploy.
It's main purpose is deploying web applications to IIS and it allows you to modify key configuration values through a simple UI.
Web Deploy works with deployment packages; a big zip containing your application and some meta data to help install it. On deployment it will diff the deployed site with the data in the deployment package to update existing files, add new ones and remove obsolete files.
You can build deployment packages directly from Visual Studio and/or from MSBuild, using your favorite build server.
Web Deploy works really well when you need to deploy often or when you have to delegate deployment to IT staff.
Customizing Web Deployment package is a bit tedious though, you may find a blog post I wrote about this useful.
For simpler situations, I recommend good version control practices and xcopy deployment.
If you tag what you deploy to your server, you can zip up the changed files since last deployment and copy those to your server.