Michael
Michael

Reputation: 202

Delete xml file after create a Visual Studio Setup Project

All the time when i just create a setup to my Project in Visual Studio 2015 ,just have a xml file. enter image description here

What i need to do to delete this file? I don't choose any xml file

this is screen what i choose in Application Folder : enter image description here

Really searched forum etc can't find solution for this . Anyone have the same problem?

EDIT 1

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
    </configSections>

    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
    <userSettings>
        <c_sharp_od_nowa.Properties.Settings>
            <setting name="Login" serializeAs="String">
                <value />
            </setting>
            <setting name="Password" serializeAs="String">
                <value />
            </setting>
            <setting name="Checkbox_rememberme" serializeAs="String">
                <value />
            </setting>
        </c_sharp_od_nowa.Properties.Settings>
    </userSettings>
</configuration>

EDIT 2

I just said bad . When i just install enter image description here

It create a exe + dlls + this xml fime. How can i hide this xml.

Upvotes: 2

Views: 842

Answers (2)

David
David

Reputation: 1871

The setup project is including this file myproject.exe.config because you have an app.config in your project. If you don't want it, you have to remove the app.config from the project. You probably need to re-work parts of your project such that this can be done.

Upvotes: 1

mehdi farhadi
mehdi farhadi

Reputation: 1532

you can right click on your main class library and select publish to create setup file from project

or

this link maybe help you.

link address

Upvotes: 0

Related Questions