문제

My C# project uses some additional text files. How can I add them to the One Click publishing process?

As far as I can see, only referenced libraries (DLL's) will be added. I can modify those files under Properits -> Publish -> Application Files. But in this menu, I can not add additional files, which are not referenced libraries.

EDIT: As suggested from an (already deleted) answer, I can not add the text file as a reference like a regular DLL. Visual Studio does not allow this.

도움이 되었습니까?

해결책

Create a folder e.g. "textfiles"

Add all files to that folder using Add as link in the dialog box after selecting Add existing item on the folder

Mark all files as Copy if newer

Set build action to content

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top