开发者

why spark files not included in publishe folder?

开发者 https://www.devze.com 2023-01-02 12:36 出处:网络
I tried file system publish and ftp I\'m using VS2010 and .net 4.0 should i somehow include *.spark ext files 开发者_如何学Goto the MSBuild?See this. You basically have to set .spark files\' Build Ac

I tried file system publish and ftp I'm using VS2010 and .net 4.0

should i somehow include *.spark ext files 开发者_如何学Goto the MSBuild?


See this. You basically have to set .spark files' Build Action to Content.

Here's a macro to do so:

Sub SetSparkBuildAction(ByVal scope As EnvDTE.vsBuildScope, ByVal action As EnvDTE.vsBuildAction) Handles BuildEvents.OnBuildBegin 
    For Each proj As Project In DTE.Solution.Projects 
        RecurseSetSparkBuildAction(proj) 
    Next 
End Sub 
Sub RecurseSetSparkBuildAction(ByVal item As Object) 
    If (item.Name.EndsWith(".spark", StringComparison.CurrentCultureIgnoreCase)) Then 
        item.Properties.Item("BuildAction").Value = 2 
    End If 
    For Each childItem As ProjectItem In item.ProjectItems 
        RecurseSetSparkBuildAction(childItem) 
    Next 
End Sub 

To use this macro, open up Macros IDE (Alt+F11), locate EnvironmentEvents in a leftmost treeview and paste this code outside of the "Automatically generated code, do not modify" region.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号