C++/CLI Export .exe Project with Correct Setting

Wami007 296 Reputation points
2021-02-24T12:01:20.203+00:00
 Hello All...

I created some simple C++/CLI project in Visual Studio 2019 and i wanna export it as portable .exe like "Rufus". Previously i tried copy program from debug folder to run .exe on another pc. Which it has VC redisturable package and .Net 4.6.1. But it gave me error like "ucrtbased.dll" and after supply this dll then "0x000007b". I thought it need SDK package and some .dll files to debug program :(

 So, how can i export my Visual Studio project with all necessary files to run any Windows machine ( Redisturable and .Net supplied ) 
Developer technologies | .NET | .NET Runtime
Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Wami007 296 Reputation points
    2021-02-27T11:29:59.36+00:00

    72584-basl%C4%B1qs%C4%B1z2346.png72585-basl%C4%B1qs%C4%B1z12.png72586-123.png

    If AnyOne Get "UcrtBased.dll" or "140D.dll" Just Do it and Click to " Built Solution" . It Will Fix Problem

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,431 Reputation points
    2021-02-25T06:28:58.153+00:00

    Hi there,
    You can try to to use this tool to build all dlls into one executable file: ILMerge

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**


  2. Wami007 296 Reputation points
    2021-02-25T19:37:07.857+00:00

    Need Help.. Please help me :(

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.