This post-build event command uses the xcopy command to copy the referenced project's dll.config file to the bin folder of the referencing project. Save the project properties and rebuild your solution.Also, make sure that the paths are enclosed in quotes if they contain spaces. Note that you will need to replace "Path\To\Referenced\Project" with the actual path to the folder containing the referenced project's app.config file. Xcopy /y "$(ProjectDir).\Path\To\Referenced\Project\bin\Debug\" "$(TargetDir)$(TargetFileName).config" In the Post-build event command line text box, enter the following command:.Right-click on your referencing project in Solution Explorer and select Properties.However, you can use a post-build event in Visual Studio to copy the app.config file to the bin folder of the referencing project. MySQL DATEDIFF Function: Get The Time Interval Between Two Datesīy default, when you build a project that references a class library that has its own app.config file, the contents of the app.config file are not copied to the bin folder of the referencing project.Using English Characters In The C Programming Language.How to add a WCF service reference in a.How add key to dictionary without value in C#?.The DELETE statement conflicted with the SAME TABLE REFERENCE constraint with Entity Framework.How to resolve IOptions instance inside ConfigureServices in C#?.Good or bad practice for Dialogs in wpf with MVVM?.How to parse a string into a nullable int in C#.NET, then why does Substring take O(n) time? NET core 3: Order of serialization for JsonPropertyName () Razor syntax highlighting not working in MVC 5.How to get unique file identifier from a file in C#.string.ToLower() and string.ToLowerInvariant() in C#.How to catch ASP.NET Core 2 SignalR exceptions on server-side and handle them on client side with JavaScript?.Serial communication timeout on long cable time out in C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |