After publish my ASP.NET5 project I get "output" folder consists of "approot", "logs", "wwwroot" folders. Inside approot/src folder there are folders with dll's of my projects, dependent projects etc. All these dlls I need to copy to my wwwroot folder. The issue is, how to get the information about the current path to my output folder during the publish. I need that information to construct glump task to copy my files to proper destination.
Related
need help compiling the build folder
Inside of the build folder is a bunch of json files and .tfx.
Expecting a single file to come out that i can ./ the file
Intro:
Currently, I have two separate projects.
One solution is for .NET core Web API 2.0 and another project is Angular 6 app.
I have a problem deploying this to my hosting provider ( asphostsportal ).
It consists of one root folder httpdocs where when I publish my API I copy contents of publishing folder.
After transferring files via FTP I confirm that my API works by sending a request and getting the response.
Now I need to publish my angular project.
The simplest way to do so is with ng build and I get some folder in dist.
Problem:
If I transfer contents of the folder inside dist to my root folder httpdocs on server It can't find any page but API still works.
If I transfer the whole folder inside httpdocs and set server Host setting to define document root to that folder:
It will find the index.html and show me my landing page.
However then API won't work.
If I leave it as is and change the document root back to httpdocs ( where the API files are ) but push the index.html from httpdocs/website to httpdocs ( in this case I also edit index.html to point to website folder for resources etc ) in the hope it will find it ( server IIS setting )
It doesn't. After that my API starts working again. However, no landing page to be found.
Just FYI I do not have any extra startup.cs lines of code that have anything to do with static files nor did my publish command on API project create wwwroot folder ( like mentioned here)
Edit (Solution):
Okay, so I got it to work.
1) I added 2 lines of code in Configure method of Startup.cs in my API
app.UseDefaultFiles();
app.UseStaticFiles(); // For the wwwroot folder
Where according to MSDN
"With UseDefaultFiles, requests to a folder search for: index.html"
2) I manually added wwwroot folder which for some reason was not generating upon publishing command for my API project.
3) In that folder I copied all contents of my dist/website angular publish files
And now it works, cheers!
I have File System Task in my package which copy a folder from source location to destination. At destination, if that folder doesn't exist, it's newly created.
I want SSIS to pick latest folder (using time-stamp) from directory as source and create new folder with same name at destination via File System Task.
Example: I have D:\Folder 1\SourceFolder copy to G:\Folder 1\SourceFolder.
Can somebody help me to figure out.
I was checking sytem/aap folder structure in Android L and realized that it has a new folder structure. It has introduced a new folder with apt name between app and apt. So new folder is like /system/app/test/test.apk
I was wondering what is advantage of this new folder structure?
For convenience I presume. The folder "apkname" may contain more than just the APK file (like .so files in lib folder)
I am using ssis to zip and rename a folder with about 7 files in it. when it zips the folder and renames it the old folder is inside of the zip folder i would just like to have the zip folder with the new name and the files inside of that.
i have tried
a -tzip "F:\Extracts\QCExtracts\QCreports_2014_07.zip" "F:\Extracts\QCExtracts\QCreports\"
a -tzip "F:\Extracts\QCExtracts\QCreports_2014_07.zip" "F:\Extracts\QCExtracts\QCreports"
for both i get the result of QCreports_2014_07.zip\ QCreports\all files
i need it to be QCreports_2014_07.zip\ all files
Assuming you use "Execute Process Task" for the 7z.exe call:
You have to set F:\Extracts\QCExtracts\QCreports\as WorkingDirectory in the Process section of your Task. This should omit the subdirectory in the zip file.