Creating App Package through Command Line in WinRT - batch-file

How can I create, WinRT App package through command line. What i am trying to achieve is, By executing a .BAT file i need to build and create app package of my windows 8 application(.sln). I build the source code using msbuild command. But i don't know how to create app package using command. Anyone please help

Running msbuild command on the project should both build the project and generate the packages.

Related

Azure pipeline Command Line Script error showing - mv: cannot stat No such file or directory

I'm using sample template project of ASP Dot NET MVC Core and inside the project React was installed. I need to deploy this project to Azure using CI/CD Pipelines.
I can able to success all jobs except command line script. In command line script job, just want to move my react "build" folder to "wwwroot" folder for navigating react index page.
This is the tutorial I've used.
Package.json
Code Structure
Repos
Pipeline - npm build
Pipeline - Command Line Script
Command Line Script
According to the blog tutorial, you are not successful because the blog is not talking about SPA.
He created two projects using two commands. I have personally tested and found that when using VS2022 to publish a SPA project, the project structure is as follows.
We can find that after the release, the React project in ClientApp will be automatically added to the wwwroot in the Asp.net Core project after compilation.
So I think, if you use two separate projects, like in the blog, then we need to use mv command to copy the file content.
If we are using a SPA project, the same project you created now, you can omit these steps and publish it normally.

'abp' is not recognized as an internal or external command,

I just started exploring the Abp features, I created a sample project from their website and able to build the project successfully. But When I run the dbmigrator project getting an exception,
Below is the screenshot of the error,
I followed this article to run the app
https://docs.abp.io/en/abp/latest/Getting-Started-Running-Solution?UI=MVC&DB=EF&Tiered=No
Do we need to install any additional package to make it work?
Any help would be appreciated.
I think you are missing the abp cli.
dotnet tool install -g Volo.Abp.Cli
Just install it using the above command and try again in a new prompt. it should fix the issue.
If you sure about abp.cli is already installed, you can run the command using by abp.exe file path like this:
C:\Users\username\.dotnet\tools\abp.exe new Acme.BookStore

Sencha command packages vs open tooling packages

Is there an easy way to migrate sencha command packages to open tooling packages? I tried to use the ext-gen migrate command but this did not work because there is not workspace.json in an sencha command package.
I also noticed there is no way to generate an open tooling package template like you can in sencha command. sencha generate template XXXX.
Is there a difference between an app and a package in new open tooling? Is everything a package?
thanks.
There's no easy way to migrate a package or workspace - only individual applications. The only way that works is to create a new package and move the code in manually.
And, yes, everything is now a NPM package. You'll need to learn that to work out how to package, share, and distribute your code. I can't help with that, as I'm still trying to learn it as well.

Build and generate script for SSDT project using command line tools

I am trying to achieve following workflow using command line:
Build the project using specific variables overriding via command line (for example I have $(buildVersion) variable in publish config that has some value. I would like to override the $(buildVersion) by entered value command line. The output of this step is dacpac file
Generate the publish script based on the generated dacpac file and the actual database
I tried to use both SqlPackage.exe and MSBuild.exe tools. However I can't get desired effect as:
I can't find the way how to build project with SqlPackage
I can't find the way how to pass variables to MSBuild
What I can now:
I can build the project using MSBuild
I can generate the publish script with SqlPackage
The stuff in a publish profile for a database project doesn't affect the build step where the dacpac is created, after all you can have as many publish profiles as you like for a single project.
When generating the publish script with sqlpackage.exe, you can pass variables like
sqlpackage.exe /action:script /sourcefile:mydacpac.dacpac /v:BuildNumber=xyz

How can one import the whole webDriver project in an executable form so that anybody else can run the suite by just a click.?

I am relatively new to Selenium WebDriver and a self learner. I have created a webDriver project which consists of different packages and have made use of Page Factory concepts extensively. I use TestNg framework to run the suite to generate my report. So my test cases are also following the TestNG framework concepts.
Now my team wants to use my script to be run at every build to test the sanity. The build team just wants to run my whole script by just a click. It can be shell script command or .exe or jar. Build team uses linux m/c and they dont have Ecplise , TestNg installed in their machine. Their intention is whenever build is given they want to run my script by just a click or a command in Command Prompt.( it has to be that simple for them) and a report should be generated in some location in hdfs
My script runs on FF version 32 and Selenium webDriver 2.44.0
Would really appreciate if someone could give me a solution that actually works for my requirement.
I found a similar query from someone but i am not sure if the answer still suits.
How to make Java executable Jar file of WebDriver project
Could somebody please give me a solution. Or the solution mentioned in the above link stil is the best?
Regards
There are few ways to do it:
Use CI tool (Jenkins): You can set up your project in Jenkins and it will allow you to run the project in single click. Jenkins also provides you an option to run the tests periodically so you can configure it in such a way that it will always get executed after certain time period.Jenkins is also capable to trigger the execution if there is any changes in source code of tests. I'd suggest to use this tool. https://jenkins-ci.org/
Use .bat or .sh file: I am not sure if you are using any build tool like ANT or Maven, if you are using any one of them then you can write a .bat or .sh file to run the tests. ANT
If you are not using any build tool then start using, it will help to run the tests in simplest way.For me to run entire suite, I just type below command in terminal from root directory of project
ant run -Dsuite=all
If you are more concerned about system configuration for e.g. the system which will be used by build team does not have a specific version of browser or specific required library. Then I'd suggest to keep all essentials like browser installation files, libraries in your project directory. This is not a good practice but yes it will help others to run the tests smoothly.
I would suggest just exporting a jar file for your project. All the libraries will be packaged together in the jar files(including TestNG) and you can simply double click on the jar file to start your tests.
External resources (if any), will have to be available for the jar file though. So, you can provide the jar file and the external resources together. The external resources might include your test data (if any) or Portable Firefox(if you are using the portable version).
Steps:
Right click on Project -> Export -> Runnable jar file
Give a name and file path for the jar file
Select option - Extract required libraries into generated JAR
And Finish
Troubleshooting:
Check the java version for the machines that you will be running your jar file on. Programs compiled with java 7 will mostly not run if the machine has java 6. Either compile with java 6 or update the jre on the target machines.
If the jar file does not launch, try using Jarfix.

Resources