I set up my project using the solution I found in this question:
Why doesn't ClickOnce in Visual Studio deploy content files from dependent assemblies?
<ItemGroup>
<AdditionalPublishFile Include="$(OutputPath)\**\*.rpt">
<Visible>False</Visible>
</AdditionalPublishFile>
</ItemGroup>
<Target Name="BeforePublish">
<Touch Files="@(IntermediateAssembly)" />
<CreateItem Include="@(AdditionalPublishFile)" AdditionalMetadata="TargetPath=%(RecursiveDir)%(Filename)%(extension);IsDataFile=false">
<Output TaskParameter="Include" ItemName="_DeploymentManifestFiles" />
</CreateItem>
</Target>
it worked perfectly with VS 2010, until I switched to VS 2012, additional files were not included in the application manifest! therefore, when the user installed the application, the specified files were not in the main folder of the application.
What has changed in VS 2012? or maybe the changes are in MSBuild?
EDIT:
, , Dependency Injection , , , , , , , .
VS 2012.