Unable to Generate Code First Migration Scripts during Visual Studio Team Services Build - powershell

I want to Generate Some files during TFS-Build for e.g. Generate some text files using exe which is executed through powershell.
I added the steps(Powershell) in TFS-build Definition , when my process comes to this step, log generates and shows that file is generated successfully, but I don't see any generated file under Artifacts > drop folder.
NOTE: I am using same directory for generating text files where my exe is available.
How to achieve this in TFS Build , I am using Visual Studio Team Services.

Based on the log files, you just published the files that in the D:\a\1\a folder to the artifacts (e.g. CIRIg.Mvc.zip, CIRIg.Mvc.SourceManifest.xml, CIRIg.Mvc.deploy.cmd, CIRIg.Mvc.SetParameters.xml).
However, the generated txt file (636247216960041685.txt) is in the D:\a\1\s...) and isn’t copied to the D:\a\1\a folder. So, you don’t see it in Artifacts > drop folder.
To deal with that issue, you can generate the file to D:\a\1\a ($(build.artifactstagingdirectory)) folder or copy that file to that folder by using Copy Files step/task.

Related

Visual Studio 2019 Add Existing (form) not working after PowerShell UNBLOCK-FILE

I was getting an error to remove the "mark of the web" from a .resx file and so I opened PowerShell as administrator, navigated to the folder in question, and issued an Unblock-File -Path myfile.resx command. I've also done it using the full path.
Now I am trying to bring the form into the project using Add Existing, but the .resx file is not being imported. However, for another form, when I choose Add Existing and click on the form's .cs file, Visual Studio (2019) brings all three files into the project in one fell swoop, its.cs, itsdesigner.cs and its.resx; but on the other form, the .resx file is not imported. In fact, Visual Studio does not even display myfile.resx in the list of files when I choose Add Existing.
What has Unblock-File done that would make the file invisible within Visual Studio?

Click once Visual Studio include files

I am trying to deploy a project with Visual Studio 2019 click once. In the directory where the program run when I execute setup.exe I want to add some folder with dependent dlls. Is there any automated way to add folders whithin the path where setup.exe runs?

Why this Build Error: Could not copy the file XXX to the destination file YYY because the destination is a folder instead of a file

The error is:
Could not copy the file "C:\Users\m_len\source\repos\JobAssist\src\Services\CoverLetterBankMgmt\CoverLetterBankMgmt.API\bin\Debug\netcoreapp3.1\JobAssist.Services.CoverLetterBankMgmt.API.xml" to the destination file "bin\Debug\netcoreapp3.1\JobAssist.Services.CoverLetterBankMgmt.API.xml", because the destination is a folder instead of a file. To copy the source file into a folder, consider using the DestinationFolder parameter instead of DestinationFiles.
However when I look in the directory, the XML is there. I deleted it and rebuilt and it was regenerated.
I am using Visual Studio 2019.
One of my projects wasnt building in the solution. I didnt figure out the cause so I just created a new project in the solution.

Using Data Files in Install4j

I'm having trouble getting the downloadable data files to work in Install4j. Here's what I'm doing. I expected to see the "phony_license_web.txt" in the AppData\Programs\myprogram folder.
Create a file "phony_license_web.txt" in Define Distribution Tree. It is added to the Default file set > Installation directory.
Go to Media > Windows > Data files
Specify a download URL "http://localhost/testsite". There is a file at http://localhost/testsite/phony_license_web.txt.
Check "Save downloaded files on Install files.
Build the project
Test the installer
I tried a Download Installation Components action but removed it since the documentation said Install Files would do this automatically.
Thanks,
Carl
Updated Test Case
Create a data file "license_web.txt" under an IIS folder with directory browsing turned on. Going to http://localhost/components displays the file item. Clicking on the link brings up the text file.
In the Installation Components, add an Installation Component "Data Files". Set the downloadable option. There are no files checked for this component.
In Media > Windows > Wizard, select Data files and check the downloadable radio button. Enter http://localhost/components.
Test the installer
Verify that the data file license_web.txt does not appear anywhere in the installation directory (subfolder of AppData\Programs)
Downloadable data files works with installation components, not with single files. You have to create an installation component on the
Files->Installation Components
step and mark it as downloadable. Then the compiler will create data files that you have to host on your web server under the specified URL.

Is there any way to import a .CAR file (WSO2) to Eclipse Developer Studio?

I need to import a .CAR file to Eclipse Developer Studio.
This .CAR file was generated from Enterprise Service Bus Project (wso2).
Is there any way to do this?
Not directly, but you can extract the .car (using 7zip or renaming to .zip) and import the the artifacts one by one in your project. Note: many artifacts can be imported not using 'import' but using 'new->select from file'.
I'm afraid but AFAIK there is no option to import a .CAR file to Dev Studio. CAR file is just a deploy able archive file, which packs deploy able artifacts into a single file.
With Integration Studio 8 and your project file ranamed from .car into .zip:
File | Open Project from File System... | Archive...
This allows you to edit all artifacts by means of Integration Studio's GUI panels though you cannot run the project. Don't even try the Export to Archive File in Integration Studio but after editing the artifacts, zip all of the their folders again in the filesystem to bring back the project .zip file, then manually rename it to .car and import it in WSO2.