visual studio mac for mac missing of identity class - visual-studio-2017

Hi i downloaded visual studio for mac 2017 community version. I created a default MVC Core 2.0 project and i noticed that there is missing class of Account controllers where it used to have register and account other handler functions.
i created the same project in windows .In windows i can see that there is identity class and controller created.
how do i generate this authentication class in visual studio for mac Core 2.0?
I tried creating the default project in windows and copy to mac and it works!!! After i change the connection string to the server.Identity framework works fine in mac. But why is microsoft not generating the code for mac?

ok this is the command to include authentication for mac ok visual studio 2017 core 2.0.
dotnet new mvc -o moviemvc --auth Individual
once u register a new account. it will create a new database in the folder with app.db which is filebase database i believe.
open db use this sql lite browser to open it and view the content of it.
if you want to use sql server instead then you will need to add this into the line when create new project with terminal. add it in front of --auth will do
-uld

With Visual Studio on Windows there are extra options you can configure when creating a new ASP.NET Core project. These extra configuration options are not currently available with Visual Studio for Mac so a simpler ASP.NET Core project is created.
So you are left with copying the project from Windows, as you already did, or you can open a command prompt and use dotnet new to create a project. If you run the following you can see what configuration options you can specify for the ASP.NET Core MVC project template:
dotnet new mvc --help

Currently the GUI for Mac Visual Studio does not support the ability to add Authentication. However, the CLI does!
dotnet new sln --name <filename>
This will create a new sln
If you don't use the --name flag the sln will take the current folder's name
dotnet new mvc -o moviemvc --auth Individual
This will create a new .csproj with mvc and Authentication (Identity models) included
dotnet sln add </filepath>
This will add the file to the sln in the folder (if exists)
dotnet sln <path-to-solution.sln> add <path-to-project.csproj>
If you have multiple sln's in the folder, you will have to specify the sln you want to target
You can find more information here too

Related

Files Not Appearing In Solution Explorer

I am using Visual Studio 2017. I created an empty ASP.NET Core Web Application, and then installed the nuget package for Bootstrap through the Nuget Package Manager Console and the bootstrap .css and .js files aren't showing up in the solution explorer. Is this a bug or is there more to using nuget?
the bootstrap .css and .js files aren't showing up in the solution explorer. Is this a bug or is there more to using nuget?
That because the usage of NuGet for css/javascript libraries is discouraged. You should use the npm (Node Package Manager) to add the JavaScript libraries instead of using NuGet. The newer project file formats, PackageReferences, only supports files that are in a contentFiles directory inside the NuGet package.
To use the package Bootstrap to the .net core project, you need to select your ASP.NET Core Web Application and add a new file to the project root. While in the template manager (Add->New Item...), search for "npm Configuration file":
Then edit the file and add your dependency, i.e.
package.json (npm) or bower.json:
"dependencies": {
"Bootstrap": "4.1.3"
}
Note: Once you save, the file will be downloaded in a directory named "node_modules`. This alone won't be enough, as the required files need to be copied over to wwwroot folder, where they can be accessed when the application runs.
For the detailed info, see NPM, BOWER, NUGET, GULP – The Four Horsemen of ASP.NET CORE Apps and ASP.NET Core 2.0 and the End of Bower.
Hope this helps.
Content in the NuGet file that gets put into your project is only supported with packages.config, which is not supported in .NET Core. PackageReferences do not support getting content from the package.
I'm not 100% sure, but I think the ASP.NET team's recommendation is to use the preferred distribution method of the content you want to use. I haven't kept up with web development trends, but a few years ago web content like bootstrap were distributed with npm, so that's my recommendation for you. Creating a new Angular JS app with Microsoft's new web app template includes a npm package.json, so I think using npm is a safe bet.

MSBuild doesn't create a package for a Web Service project?

We're running the following command for building and packaging Visual Studio Solutions:
MSBuild.exe *slnfile* /p:DeployOnBuild=true /p:CreatePackageOnPublish=true
It appears this creates packages for Web Applications but not Web Services. I don't even see a "Publish" option in Visual Studio for Web Service projects. How do I package these for deployment?
It turns out the developer didn't create a Web Application project, they created a simple empty C# project. I converted the project to Web Application and it works.

Cordova can't create app package for windows Store

I'm creating an app with cordova and I need to release it on the windows store (is already in the App store and in the process to be released on the play store so the app itself is working) so I've cloned my cordova app on a windows machine downloaded the Microsoft Visual Studio 2017 community edition and created a new project from existing code selecting apache cordova in the wizard.
And I can run the app on emulator and a real device but when I try to "Project" -> "Store" -> "Create App Packages..." I always fail the verification but the strange thing is that it looks that all the test are passed but at the end I got an error suggesting to check in the folder: "C:\Users[$user]\AppData\Local\Microsoft\AppCertKit" for the log but the AppcertKit folder dosen't even exist and even if I create a new one is always empty.
If I try to upload the .appxupload file created in "\platforms\windows\AppPackages" I get always two errors about:
Invalid package family name
Invalid package publisher name: CN=Apache Cordova Team (expected
even if I select the remote app in the wizard for the creation of the packages.
I'm using:
Visual Studio 2017 15.2
Cordova (6.3.1 / 6.5 / 7.0.1) I've tried all of them.
Windows 10 Pro
If I try to upload the .appxupload file created in
"\platforms\windows\AppPackages" I get always two errors about:
Invalid package family name Invalid package publisher name: CN=Apache
Cordova Team (expected even if I select the remote app in the wizard
for the creation of the packages.
According to the submission error, the identity info of your package cannot be recognized by Dev Center.
To upload your package, you need to associate your project with the app name you reserved in Dev Center to match the identity info:
For more details, you can refer to Package your Windows version Cordova app.

Change a configuration property for Teamcity

I am fairly new to teamcity 7.1, but I installed teamcity and then found that I needed to install a new version of Windows SDK from 6.0A to 7.1 due to the ldap.h file. When I run the msbuild for our C++ application I get the ldap not found error.
I believe this is related to needing the newer SDK. Anyway I notice on the Agent properties of
WindowsSDKv6.0A v6.0A
WindowsSDKv6.0A_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
Should I just add the 7.1 ? or is there a way to replace this configuration property all together?
The buildAgent.properties file does not list any of the configuration properties that exist.
The existing configuration properties are detected automatically by Teamcity agent.
According to Teamcity's document PredefinedBuildParameters-AgentProperties:
TeamCity automatically detects a number of applications including the
presence of .NET Framework, Visual Studio and adds the corresponding
system properties and environment variables
And in table of the same page, it shows:
WindowsSDK This property is defined if the corresponding
version of Windows SDK is installed. (Supported versions are 6.0,
6.0A, 7.0, 7.0A, 7.1)
So try to restart Teamcity agent to see if it can pick up the newly installed SDK automatically.
If it can't, try to add the 7.1 properties in the buildAgent.properties file, and then restart the build agent.
And to tell msbuild to use the correct SDK:
Go to "Start" menu and search "Windows SDK 7.1 Command Prompt"
In the prompt, type "cd setup"
In the prompt, type "WindowsSdkVer.exe -version:v7.1"

configure WSO2 Web Services Framework for C++ (WSO2 WSF/C++) on windows 7

i use this documenet for configure on windows WSO2 Web Services Framework for C++
form the following documnet i able to start axis2_http_server and it's running on port on 9090
its display deployed application on http://localhost:9090/axis2/services
but when i try to create hello.cpp sample application from the given documentation but not able to compile the hello.cpp src file
i install all listed Dependencies on my windows 7 box then also not able to compile hello.cpp i install visual c++ 2008 and also try with cygwin for gcc compiler then also not able to compile can any one help to set development environment for WSO2 Web Services Framework for C++ on windows
Try using visual studio to build a project. Another option is to try and look at the samples makefile shipped with wsf/cpp and use a similar command.