MSBUILD publish does not publish xsd schema file

I use MSbuild to publish webservices projects on the command line using the following command:

msbuild.exe MyWebservicesProjectPath \ Services.csproj / t: ResolveReferences; _CopyWebApplication / p: Configuration = Release; BuildingProject = true; WebProjectOutputDir = c: \ inetpub \ wwwroot \ webserviceDest; OutDir = c: \ inetpub \ wwwroot \ webserviceDest \

Everything is published fine, except for the .xsd files that are in the ProjectName \ WebServices \ Schema folder. what's going on here?

Thank.

+3
source share
2 answers

In your solution, check the property of your .xsd file.

" " - " " .

" " ( ", " ), .

<ItemGroup>
    <None Include="XMLSchema1.xsd">
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
</ItemGroup>
+4

.XSD → "" "".

+1

Source: https://habr.com/ru/post/1735487/


All Articles